module Ckeditor::Orm::Mongoid::AssetBase::ClassMethods

Public Class Methods

extended(base) click to toggle source
# 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