Sha256: f84cd3d5d98c72316e3130b635843585a9b5071f8d0c589a546b13f561dcf860

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

class ActiveRecord::Base
  
  class << self
    
    private
    
    def attribute_condition_with_grouped_scope(argument)
      case argument
        when GroupedScope::SelfGroupping then "IN (?)"
        else attribute_condition_without_grouped_scope(argument)
      end
    end
    
    alias_method_chain :attribute_condition, :grouped_scope
    
  end
  
end


Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
decisiv-grouped_scope-0.5.1.1 lib/grouped_scope/core_ext.rb
metaskills-grouped_scope-0.5.1 lib/grouped_scope/core_ext.rb