module Shrine::Plugins::RemoteUrl::AttachmentMethods

Public Instance Methods

define_model_methods(name) click to toggle source
Calls superclass method
# File lib/shrine/plugins/remote_url.rb, line 38
def define_model_methods(name)
  super if defined?(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