Method: Paperclip::Interpolations#attachment
- Defined in:
- lib/paperclip/interpolations.rb
#attachment(attachment, style_name) ⇒ Object
Returns the pluralized form of the attachment name. e.g. “avatars” for an attachment of :avatar
121 122 123 |
# File 'lib/paperclip/interpolations.rb', line 121 def , style_name .name.to_s.downcase.pluralize end |