Module: Shrine::Plugins::RemoteUrl::AttachmentMethods

Defined in:
lib/shrine/plugins/remote_url.rb

Instance Method Summary collapse

Instance Method Details

#initialize(name, **options) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
# File 'lib/shrine/plugins/remote_url.rb', line 56

def initialize(name, **options)
  super

  define_method :"#{name}_remote_url=" do |url|
    send(:"#{name}_attacher").remote_url = url
  end

  define_method :"#{name}_remote_url" do
    send(:"#{name}_attacher").remote_url
  end
end