admino 0.0.21 → 0.0.22

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08aee39a2a0d4179c636d7dc88772521285d8d99
4
- data.tar.gz: e1cc15bdf64a4dd1e8a2bec402d7ce6af144942e
3
+ metadata.gz: 81591c2283aa61d8463f3cd8ae88475f1e174de0
4
+ data.tar.gz: d5d1705161288534c098b492fa9bd839e74e3ba6
5
5
  SHA512:
6
- metadata.gz: 488acd28c2ccd659fdb03d3cffb4efe823767d3a063b56fa0aadfc9c3b3af984132e0db417b2d4c13e5930c3c65a55868e6421eaba6ef82748f5264cb4a3f891
7
- data.tar.gz: dd3008169e82d3fbd201a17afe6f882dcb304e3da0976ff2c5ff116a6ed5cb8d1d91dba16757142c05bf1b80d67299690200f72bd4e890b358cfdd854d1c9d3e
6
+ metadata.gz: 19488e04fc9411cd801aa7a21a48e65bc0dbe19b6863d00226c9e8055789fa7159b3668b229d77eaff586d4f454556ad4d0c92f2e119f3eaf1752925ac189a79
7
+ data.tar.gz: 1172a24d71edef1ee3379d2ae99ba5dd96a128cd73744286fa8dde1d8751b4ae545f81beb121ec3b69bc83212c74016f6cccf4eae56291548d40ae24fe810030
@@ -27,7 +27,12 @@ module Admino
27
27
  end
28
28
 
29
29
  def initialize(params = nil, context = {}, config = nil)
30
- @params = ActiveSupport::HashWithIndifferentAccess.new(params)
30
+ @params =
31
+ if params.respond_to?(:to_unsafe_h)
32
+ ActiveSupport::HashWithIndifferentAccess.new(params.to_unsafe_h)
33
+ else
34
+ ActiveSupport::HashWithIndifferentAccess.new(params)
35
+ end
31
36
  @config = config
32
37
  @context = context
33
38
 
@@ -1,3 +1,3 @@
1
1
  module Admino
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admino
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-22 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: showcase
@@ -274,4 +274,3 @@ test_files:
274
274
  - spec/admino/table/resource_row_spec.rb
275
275
  - spec/admino/table/row_spec.rb
276
276
  - spec/spec_helper.rb
277
- has_rdoc: