Module: NormalAttachment::Image

Extended by:
ActiveSupport::Concern
Defined in:
lib/normal_attachment.rb

Instance Method Summary collapse

Instance Method Details

#url(spree_options = nil) ⇒ Object

Solidus Admin/Backend requirements:

  • attachment name must be ‘attachment’

  • a :url method defined on the model instances that takes options (size)

  • a class method :attachment_definitions that returns a hash in this format (apparently not used)



17
18
19
# File 'lib/normal_attachment.rb', line 17

def url spree_options=nil
  attachment.url
end