Sha256: b9119fa5d76f2e8f792af3e0cc84ddb39ff59f1923c6b44103f8d2a043583e97

Contents?: true

Size: 529 Bytes

Versions: 35

Compression:

Stored size: 529 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
              self.table_name = "ckeditor_assets"

              belongs_to :assetable, :polymorphic => true
            end
          end
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 4 rubygems

Version Path
danabr75-ckeditor-4.1.6 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.6.0 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.5.10.3 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.5.10.2 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.5.10.1 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.5.7.1 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.5.7 lib/ckeditor/orm/active_record.rb
ckeditor_custom_controller-4.1.6 lib/ckeditor/orm/active_record.rb
ckeditor-4.1.6 lib/ckeditor/orm/active_record.rb
ckeditor-4.1.5 lib/ckeditor/orm/active_record.rb
ckeditor-4.1.4 lib/ckeditor/orm/active_record.rb
ckeditor-4.1.3 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.4.7.4 lib/ckeditor/orm/active_record.rb
ckeditor-4.1.2 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.4.7.3 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.4.7.2 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.4.7.1 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.4.7 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.4.6 lib/ckeditor/orm/active_record.rb
ckeditor-4.1.1 lib/ckeditor/orm/active_record.rb