Sha256: 403a49bd6761d31db72243303e6dca8b110445b53ca63a704f8cadc1fcc7e152
Contents?: true
Size: 911 Bytes
Versions: 1
Compression:
Stored size: 911 Bytes
Contents
module ActiveRecord class Base def self.where(*args) self.scoped :conditions => args.length == 1 ? args[0] : args end def self.joins(*args) self.scoped :joins => args.length == 1 ? args[0] : args end def self.includes(*args) self.scoped :include => args.length == 1 ? args[0] : args end def self.select(arg) self.scoped :select => arg end def self.order(arg) self.scoped :order => arg end def self.limit(arg) self.scoped :limit => arg end def self.offset(arg) self.scoped :offset => arg end def self.group(arg) self.scoped :group => arg end def self.having(arg) self.scoped :having => arg end def self.named_scope(name, options={}, &block) options = options.proxy_options if options.respond_to?(:proxy_options) super(name, options, &block) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails3_bridge-0.1.1 | lib/rails3_bridge.rb |