Sha256: 1b5c8b8f00ef5e81bbc4555ddbb566e3413d5c9ecb1d16b7f9b053f12ea49819

Contents?: true

Size: 501 Bytes

Versions: 8

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

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'
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ckeditor-5.1.3 lib/ckeditor/orm/active_record.rb
ckeditor-5.1.2 lib/ckeditor/orm/active_record.rb
ckeditor-5.1.1 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.14.1 lib/ckeditor/orm/active_record.rb
ckeditor-5.1.0 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.13.1 lib/ckeditor/orm/active_record.rb
glebtv-ckeditor-4.13.0 lib/ckeditor/orm/active_record.rb
ckeditor-5.0.0 lib/ckeditor/orm/active_record.rb