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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6014ee49677eaf346ac7e777893c85368e2ca75f
|
4
|
+
data.tar.gz: 5b2a3e92686d354c82194f373d9b36061b67cc8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
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.
|
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
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|