Module: Ckeditor::Orm::Mongoid::AssetBase::ClassMethods

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

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



27
28
29
30
31
32
33
34
35
36
# File 'lib/ckeditor/orm/mongoid.rb', line 27

def self.extended(base)
  base.class_eval do
    field :data_content_type, :type => String
    field :data_file_size, :type => Integer
    field :width, :type => Integer
    field :height, :type => Integer

    belongs_to :assetable, :polymorphic => true
  end
end