Sha256: c77bbcc2cc4b2bd8a5dfb2f6f4786641073d42c8a66cd94943c8f3b4b91d875f

Contents?: true

Size: 1.15 KB

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
protobuf-activerecord-3.6.1 lib/protobuf/active_record/model.rb