Sha256: 4dbb1fad176108e6434da2852d6f0572969fbd5ab3a66efd18f384a588b1bf69

Contents?: true

Size: 725 Bytes

Versions: 16

Compression:

Stored size: 725 Bytes

Contents

module ActsAsTaggableOn
  module ActiveRecord
    module Backports
      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
    end
  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
axtro-acts-as-taggable-on-2.0.6 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
axtro-acts-as-taggable-on-2.0.5 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
axtro-acts-as-taggable-on-2.0.4 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
yetanothernguyen-acts-as-taggable-on-0.0.5 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
litmus-acts-as-taggable-on-2.0.4 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.6 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.5 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.4 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.3 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.2 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.1 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.0 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.0.rc2 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.0.rc1 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-2.0.0.pre5 lib/acts_as_taggable_on/compatibility/active_record_backports.rb
acts-as-taggable-on-0.0.0 lib/acts_as_taggable_on/compatibility/active_record_backports.rb