Class: AttachableAsset

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/attachable_asset.rb

Direct Known Subclasses

AttachableDocument, AttachableImage

Instance Method Summary collapse

Instance Method Details

#attachable_type=(s_type) ⇒ Object



8
9
10
# File 'app/models/attachable_asset.rb', line 8

def attachable_type=(s_type)
  super(s_type.to_s.classify.constantize.class.to_s)
end