4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/tagtical/compatibility/active_record_backports.rb', line 4
def self.included(base)
base.class_eval do
named_scope :where, lambda { |conditions| { :conditions => conditions } }
named_scope :joins, lambda { |joins| { :joins => joins } }
named_scope :group, lambda { |group| { :group => group } }
named_scope :order, lambda { |order| { :order => order } }
named_scope :select, lambda { |select| { :select => select } }
named_scope :limit, lambda { |limit| { :limit => limit } }
named_scope :readonly, lambda { |readonly| { :readonly => readonly } }
def self.to_sql
construct_finder_sql({})
end
end
end
|