Sha256: a731e5283f0ad9c9355bbe5b5517d5c56e45c038721c82ecbd596a1f693c7d4b

Contents?: true

Size: 1.15 KB

Versions: 30

Compression:

Stored size: 1.15 KB

Contents

require 'protobuf/active_record/attribute_methods'
require 'protobuf/active_record/columns'
require 'protobuf/active_record/errors'
require 'protobuf/active_record/mass_assignment_security'
require 'protobuf/active_record/nested_attributes'
require 'protobuf/active_record/persistence'
require 'protobuf/active_record/scope'
require 'protobuf/active_record/serialization'
require 'protobuf/active_record/transformation'
require 'protobuf/active_record/validations'

module Protobuf
  module ActiveRecord
    module Model
      extend ::ActiveSupport::Concern

      included do
        include Protobuf::ActiveRecord::AttributeMethods
        include Protobuf::ActiveRecord::Columns
        include Protobuf::ActiveRecord::NestedAttributes
        include Protobuf::ActiveRecord::Serialization
        include Protobuf::ActiveRecord::Scope
        include Protobuf::ActiveRecord::Transformation
        include Protobuf::ActiveRecord::Validations

        if defined?(::ActiveModel::MassAssignmentSecurity)
          include Protobuf::ActiveRecord::MassAssignmentSecurity
        else
          include Protobuf::ActiveRecord::Persistence
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
protobuf-activerecord-3.2.0 lib/protobuf/active_record/model.rb
protobuf-activerecord-3.1.1 lib/protobuf/active_record/model.rb
protobuf-activerecord-3.1.0 lib/protobuf/active_record/model.rb
protobuf-activerecord-3.1.0.rc1 lib/protobuf/active_record/model.rb
protobuf-activerecord-3.1.0.alpha2 lib/protobuf/active_record/model.rb
protobuf-activerecord-3.1.0.alpha lib/protobuf/active_record/model.rb
protobuf-activerecord-3.0.2 lib/protobuf/active_record/model.rb
protobuf-activerecord-3.0.1 lib/protobuf/active_record/model.rb
protobuf-activerecord-3.0.0 lib/protobuf/active_record/model.rb
protobuf-activerecord-3.0.0.rc4 lib/protobuf/active_record/model.rb