sprsquish-order_fu 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/init.rb +17 -0
- metadata +2 -1
data/VERSION.yml
CHANGED
data/init.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'order_fu'
|
2
|
+
require 'activerecord'
|
3
|
+
|
4
|
+
Symbol.send(:include, OrderFu::SymbolExtensions)
|
5
|
+
|
6
|
+
ActiveRecord::Base.send(:extend, OrderFu::ActiveRecordExtentions)
|
7
|
+
|
8
|
+
module ::ActiveRecord
|
9
|
+
class Base
|
10
|
+
class << self
|
11
|
+
# use the sanitize_sql_hash_for_conditions_with_attribute_queries
|
12
|
+
alias_method_chain :add_order!, :order_fu
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
RAILS_DEFAULT_LOGGER.info("** OrderFu: initialized properly")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprsquish-order_fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Smick
|
@@ -22,6 +22,7 @@ extensions: []
|
|
22
22
|
extra_rdoc_files: []
|
23
23
|
|
24
24
|
files:
|
25
|
+
- init.rb
|
25
26
|
- VERSION.yml
|
26
27
|
- lib/order_fu.rb
|
27
28
|
- spec/database.yml
|