Sha256: 3be4582f5d919ac509bd88a3d1f6eacf50f799163fa9ada1cb7e7bc79133b639

Contents?: true

Size: 212 Bytes

Versions: 22

Compression:

Stored size: 212 Bytes

Contents

# Create new Paperclip::Interpolations method for subtype class
module Paperclip::Interpolations #:nodoc:
  def subtype_class attachment, style_name
    attachment.instance.subject_type.to_s.underscore
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
social_stream-0.1.0 lib/paperclip/social_stream.rb
social_stream-0.0.5 lib/paperclip/ext.rb