class ActiveRecord::Base
Public Class Methods
group(arg)
click to toggle source
# File lib/rails3_bridge.rb, line 31 def self.group(arg) self.scoped :group => arg end
having(arg)
click to toggle source
# File lib/rails3_bridge.rb, line 35 def self.having(arg) self.scoped :having => arg end
includes(*args)
click to toggle source
# File lib/rails3_bridge.rb, line 11 def self.includes(*args) self.scoped :include => args.length == 1 ? args[0] : args end
joins(*args)
click to toggle source
# File lib/rails3_bridge.rb, line 7 def self.joins(*args) self.scoped :joins => args.length == 1 ? args[0] : args end
limit(arg)
click to toggle source
# File lib/rails3_bridge.rb, line 23 def self.limit(arg) self.scoped :limit => arg end
named_scope(name, options={}, &block)
click to toggle source
Calls superclass method
# File lib/rails3_bridge.rb, line 39 def self.named_scope(name, options={}, &block) options = options.proxy_options if options.respond_to?(:proxy_options) super(name, options, &block) end
offset(arg)
click to toggle source
# File lib/rails3_bridge.rb, line 27 def self.offset(arg) self.scoped :offset => arg end
order(arg)
click to toggle source
# File lib/rails3_bridge.rb, line 19 def self.order(arg) self.scoped :order => arg end
select(arg)
click to toggle source
# File lib/rails3_bridge.rb, line 15 def self.select(arg) self.scoped :select => arg end
where(*args)
click to toggle source
# File lib/rails3_bridge.rb, line 3 def self.where(*args) self.scoped :conditions => args.length == 1 ? args[0] : args end