Sha256: 5637f1c07fb33249737a681deedcddfadf0afc232d91c52db99d30eb2b7d995a

Contents?: true

Size: 1022 Bytes

Versions: 2

Compression:

Stored size: 1022 Bytes

Contents

require 'active_model'

require 'acfs/model/attributes'
require 'acfs/model/dirty'
require 'acfs/model/loadable'
require 'acfs/model/locatable'
require 'acfs/model/persistence'
require 'acfs/model/operational'
require 'acfs/model/query_methods'
require 'acfs/model/relations'
require 'acfs/model/service'

module Acfs
  module Model
    extend ActiveSupport::Concern

    included do
      if ActiveModel::VERSION::MAJOR >= 4
        include ActiveModel::Model
      else
        extend  ActiveModel::Naming
        extend  ActiveModel::Translation
        include ActiveModel::Conversion
        include ActiveModel::Validations

        require 'acfs/model/initialization'
        include Model::Initialization
      end

      include Model::Attributes
      include Model::Loadable
      include Model::Persistence
      include Model::Locatable
      include Model::Operational
      include Model::QueryMethods
      include Model::Relations
      include Model::Service
      include Model::Dirty
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acfs-0.16.0 lib/acfs/model.rb
acfs-0.15.0 lib/acfs/model.rb