Sha256: 7af82a2834fafc5608e96aa3d8f995dbc35937fea546a664e7148119eef44d27
Contents?: true
Size: 264 Bytes
Versions: 19
Compression:
Stored size: 264 Bytes
Contents
class AttachableAsset < ActiveRecord::Base belongs_to :attachable, :polymorphic => true has_attached_file :attachment, :styles => { :medium => "400x400>" } def attachable_type=(s_type) super(s_type.to_s.classify.constantize.class.to_s) end end
Version data entries
19 entries across 19 versions & 1 rubygems