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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fe4e5745ecaebed714a0197f0f75dd980ff2bd2
4
- data.tar.gz: d29860ee8eacbb82ec760d5b294a0eea6be9f21b
3
+ metadata.gz: cd01b7eba5a56472f7840a781735379e72aa6a9d
4
+ data.tar.gz: 5d7b4304379f67a8e26aea2b6e8de23cbe8935f4
5
5
  SHA512:
6
- metadata.gz: f25396af84ca1800d70dd7350290eb14e17f37dbe67c71857042cb78ec8203e853174db7d04c4141b8749d609cfa305df15d18524d3954c2cfed6aafd87e3dfa
7
- data.tar.gz: 0b6cea105256eb0a726a3455972b806e40b03f8718b7985c6da7e2cc60cba75f78c206ef9972a2926f92bb8ac3db1fd54d75daa56a1b9ff3489d60c196ad93c3
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
@@ -1,7 +1,7 @@
1
1
  module Mincer
2
2
 
3
3
  def self.version
4
- Gem::Version.new '0.2.8'
4
+ Gem::Version.new '0.2.9'
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mincer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Krasinsky