sprsquish-order_fu 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION.yml +2 -2
  2. data/init.rb +0 -16
  3. data/lib/order_fu.rb +18 -1
  4. metadata +1 -1
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 1
4
- :patch: 2
3
+ :minor: 2
4
+ :patch: 0
data/init.rb CHANGED
@@ -1,17 +1 @@
1
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")
@@ -59,4 +59,21 @@ module OrderFu
59
59
  end
60
60
  end
61
61
  end
62
- end
62
+ end
63
+
64
+ require 'activerecord'
65
+
66
+ Symbol.send(:include, OrderFu::SymbolExtensions)
67
+
68
+ ActiveRecord::Base.send(:extend, OrderFu::ActiveRecordExtentions)
69
+
70
+ module ::ActiveRecord
71
+ class Base
72
+ class << self
73
+ # use the sanitize_sql_hash_for_conditions_with_attribute_queries
74
+ alias_method_chain :add_order!, :order_fu
75
+ end
76
+ end
77
+ end
78
+
79
+ 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.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Smick