Module: ActsAsTaggableOn::ActiveRecord::Backports

Included in:
Tag, Tagging
Defined in:
lib/acts_as_taggable_on/compatibility/active_record_backports.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/acts_as_taggable_on/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 } }   
  end
end