active_admin_simple_life 0.0.11 → 0.0.12

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: 3310e5cf7eb3603fabc8f5e510687d370a83efe1
4
- data.tar.gz: 5c28b630958e34fa19bcc21be7ef5c5e02f9ffd4
3
+ metadata.gz: 6014ee49677eaf346ac7e777893c85368e2ca75f
4
+ data.tar.gz: 5b2a3e92686d354c82194f373d9b36061b67cc8a
5
5
  SHA512:
6
- metadata.gz: 6ea9ae8b742db27d86810468c86212d4b367626334a2f77fc023bc02e72aab4aa427618e212ad9ba945e039224b367a2f7cac50df48f61499a87f265a81a5012
7
- data.tar.gz: fd2444fe7139f611fee437740312f28c21731d3da523fc892b5c0b6bb57f304b0de6bd7a41d7f03c6cb592d022e96c23fd3103625b9612e95274eaff34ec9691
6
+ metadata.gz: ee53d2b6f4399a56459ab71d4b67d9659e63577ded299393e6369f7cf07bac945188d62e614d2d0f8c7e3005f7a35f796a120c414d9fc4393477848dd1e59a36
7
+ data.tar.gz: 9546abf969e48a19f260ed08e27c40ccdbe0036b811ed0e9e4daa966b068725b0970f22ffd522f6d9c08d0c9ea28f4a341e9ad5b94ca7dff0591c8f2be41dc90
@@ -11,10 +11,11 @@ module ActiveAdminSimpleLife
11
11
 
12
12
  def simple_menu_for(klass, options = {})
13
13
  ActiveAdmin.register klass do
14
- menu_options = options.slice(:priority, :parent)
15
- menu menu_options if menu_options.any?
16
- permitted_params = options[:permitted_params]
14
+ permitted_params = options.delete :permitted_params
17
15
  permit_params(*(klass.main_fields + (permitted_params || [])))
16
+ # menu_options = options.slice(:priority, :parent, :if)
17
+ menu options if options.any?
18
+
18
19
  actions :all, except: [:show]
19
20
 
20
21
  controller.class_variable_set(:@@permitted_params, permitted_params)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveAdminSimpleLife
3
- VERSION = "0.0.11"
3
+ VERSION = "0.0.12"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_simple_life
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kvokka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-11 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails