Sha256: 061d6c85361f159c0f0cc1db3ddee76b1fcba48223beda8db9f08420b2acc7a2
Contents?: true
Size: 643 Bytes
Versions: 3
Compression:
Stored size: 643 Bytes
Contents
require 'ckeditor/orm/base' module Ckeditor module Orm module ActiveRecord module AssetBase def self.included(base) base.send(:include, Base::AssetBase::InstanceMethods) base.send(:extend, ClassMethods) end module ClassMethods def self.extended(base) base.class_eval do set_table_name "ckeditor_assets" belongs_to :assetable, :polymorphic => true attr_accessible :data, :assetable_type, :assetable_id, :assetable end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ckeditor-3.6.3 | lib/ckeditor/orm/active_record.rb |
ckeditor-3.6.2 | lib/ckeditor/orm/active_record.rb |
ckeditor-3.6.1 | lib/ckeditor/orm/active_record.rb |