Module: Paperclip::Interpolations

Defined in:
lib/paperclip/social_stream.rb

Overview

Create new Paperclip::Interpolations method for subtype class

Instance Method Summary collapse

Instance Method Details

#subtype_class(attachment, style_name) ⇒ Object

:nodoc:



3
4
5
# File 'lib/paperclip/social_stream.rb', line 3

def subtype_class attachment, style_name
  attachment.instance.actor.subject_type.to_s.underscore
end