Sha256: 31167006d237ed185a22504eadc35d80b5872ac06f4130e54783549a573c3608

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

require 'order_fu'
require 'activerecord'

Symbol.send(:include, OrderFu::SymbolExtensions)

ActiveRecord::Base.send(:extend, OrderFu::ActiveRecordExtentions)

module ::ActiveRecord
  class Base
    class << self
       # use the sanitize_sql_hash_for_conditions_with_attribute_queries
       alias_method_chain :add_order!, :order_fu
    end
  end
end

RAILS_DEFAULT_LOGGER.info("** OrderFu: initialized properly")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sprsquish-order_fu-0.1.2 init.rb