Sha256: 8962b9893f9e32a04f6356921bbda0b6c7a8f2e2fa0367c761f94cfe0e430a83
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
require 'conditions_fu' require 'activerecord' Symbol.send(:include, ConditionsFu::SymbolQueryExtensions) # extend activerecord with the condition methods ActiveRecord::Base.send(:extend, ConditionsFu::Base) # override sanitize_sql_hash_for_conditions module ::ActiveRecord class Base class << self # use the sanitize_sql_hash_for_conditions_with_attribute_queries alias_method_chain :sanitize_sql_hash_for_conditions, :attribute_queries end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprsquish-conditions_fu-0.2.1 | init.rb |