module Shrine::Plugins::RemoteUrl::AttachmentMethods

  1. lib/shrine/plugins/remote_url.rb

Methods

Public Instance

  1. define_model_methods

Public Instance methods

define_model_methods(name)
[show source]
   # File lib/shrine/plugins/remote_url.rb
38 def define_model_methods(name)
39   super if defined?(super)
40 
41   define_method :"#{name}_remote_url=" do |url|
42     send(:"#{name}_attacher").remote_url = url
43   end
44 
45   define_method :"#{name}_remote_url" do
46     send(:"#{name}_attacher").remote_url
47   end
48 end