Sha256: 0bed8934f0abcf430064e37f047af25a70b6ddb785726da53065e5ed22394c6a

Contents?: true

Size: 644 Bytes

Versions: 13

Compression:

Stored size: 644 Bytes

Contents

require_relative 'scoping'
require_relative 'querying'
require_relative 'modeling'
require_relative 'connecting'
require_relative 'logger'
require 'active_model/conversion'
require 'active_model/naming'

module ActiveHouse
  class Model
    include ActiveHouse::Scoping
    include ActiveHouse::Querying
    include ActiveHouse::Modeling
    include ActiveHouse::Connecting
    include ActiveHouse::Logger
    include ActiveModel::Conversion
    extend ActiveModel::Naming

    class_attribute :_table_name, instance_accessor: false

    class << self
      def table_name(name)
        self._table_name = name.to_s
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
active_house-0.4.0 lib/active_house/model.rb
active_house-0.3.2 lib/active_house/model.rb
active_house-0.3.1 lib/active_house/model.rb
active_house-0.3.0 lib/active_house/model.rb
active_house-0.2.2 lib/active_house/model.rb
active_house-0.2.1 lib/active_house/model.rb
active_house-0.2.0 lib/active_house/model.rb
active_house-0.1.5 lib/active_house/model.rb
active_house-0.1.4 lib/active_house/model.rb
active_house-0.1.3 lib/active_house/model.rb
active_house-0.1.2 lib/active_house/model.rb
active_house-0.1.1 lib/active_house/model.rb
active_house-0.1.0 lib/active_house/model.rb