Module: Ckeditor::Orm::ActiveRecord::AssetBase::ClassMethods

Defined in:
lib/ckeditor/orm/active_record.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/ckeditor/orm/active_record.rb', line 13

def self.extended(base)
  base.class_eval do
    self.table_name = "ckeditor_assets"
    
    belongs_to :assetable, :polymorphic => true
    
    attr_accessible :data, :assetable_type, :assetable_id, :assetable
  end
end