Class: ActiveRecord::Associations::AssociationProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/rails3_bridge.rb

Class Method Summary collapse

Class Method Details

.group(arg) ⇒ Object



77
78
79
# File 'lib/rails3_bridge.rb', line 77

def self.group(arg)
  self.scoped :group => arg
end

.having(arg) ⇒ Object



81
82
83
# File 'lib/rails3_bridge.rb', line 81

def self.having(arg)
  self.scoped :having => arg
end

.includes(*args) ⇒ Object



57
58
59
# File 'lib/rails3_bridge.rb', line 57

def self.includes(*args)
  self.scoped :include => args.length == 1 ? args[0] : args
end

.joins(*args) ⇒ Object



53
54
55
# File 'lib/rails3_bridge.rb', line 53

def self.joins(*args)
  self.scoped :joins => args.length == 1 ? args[0] : args
end

.limit(arg) ⇒ Object



69
70
71
# File 'lib/rails3_bridge.rb', line 69

def self.limit(arg)
  self.scoped :limit => arg
end

.offset(arg) ⇒ Object



73
74
75
# File 'lib/rails3_bridge.rb', line 73

def self.offset(arg)
  self.scoped :offset => arg
end

.order(arg) ⇒ Object



65
66
67
# File 'lib/rails3_bridge.rb', line 65

def self.order(arg)
  self.scoped :order => arg
end

.select(arg) ⇒ Object



61
62
63
# File 'lib/rails3_bridge.rb', line 61

def self.select(arg)
  self.scoped :select => arg
end

.where(*args) ⇒ Object



49
50
51
# File 'lib/rails3_bridge.rb', line 49

def self.where(*args)
  self.scoped :conditions => args.length == 1 ? args[0] : args
end