mincer 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mincer/base.rb +2 -2
- data/lib/mincer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd01b7eba5a56472f7840a781735379e72aa6a9d
|
4
|
+
data.tar.gz: 5d7b4304379f67a8e26aea2b6e8de23cbe8935f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 510c437475a7b9519bab079059b4c3a2e62c6bccf0bd6dedb2971b09686afb8f3d38ce9a938c656844ab7c1ecd11b9e8d10d641d778053ee1ceaf7e72bb982f3
|
7
|
+
data.tar.gz: 1196d1f63d793e851b6ae42e4fbcf16379b25b8613879def5f4e5622f675d4f004aec30bd5ef042125adf37772ff44f36473a3d8dd798b4bb7b027bd2102624f
|
data/lib/mincer/base.rb
CHANGED
@@ -7,8 +7,8 @@ module Mincer
|
|
7
7
|
|
8
8
|
# Builds query object
|
9
9
|
def initialize(scope, args = {})
|
10
|
-
@args = if defined?(ActionController::Parameters) && args.is_a?(ActionController::Parameters)
|
11
|
-
args.to_unsafe_h
|
10
|
+
@args = if defined?(ActionController::Parameters) && args.is_a?(ActionController::Parameters) && args.respond_to?(:to_unsafe_h)
|
11
|
+
::ActiveSupport::HashWithIndifferentAccess.new(args.to_unsafe_h)
|
12
12
|
else
|
13
13
|
::ActiveSupport::HashWithIndifferentAccess.new(args)
|
14
14
|
end
|
data/lib/mincer/version.rb
CHANGED