Sha256: 3b19f52e64385a487221121cfd0cbbe2ee00d5b810f37ac89b812f8c14ffc94c

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 Bytes

Contents

require 'rubygems'
require 'proc_to_ruby'
require 'ambition/processor'
require 'ambition/query'
require 'ambition/where'
require 'ambition/order'
require 'ambition/limit'
require 'ambition/count'
require 'ambition/enumerable'

module Ambition 
  include Where, Order, Limit, Enumerable, Count

  attr_accessor :query_context

  def query_context
    @query_context || Query.new(self)
  end
end

ActiveRecord::Base.extend Ambition

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
cheat-1.3.3 lib/ambition/lib/ambition.rb
cheat-1.3.2 lib/ambition/lib/ambition.rb
cheat-1.3.1 lib/ambition/lib/ambition.rb
cheat-1.3.0 lib/ambition/lib/ambition.rb
ambition-0.1.0 ./lib/ambition.rb