active_admin_simple_life 0.1.3 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77f85d2957cc5270de2b410617fc48b6079d07ab
|
4
|
+
data.tar.gz: ef431c9c2c0cf648c2ec8750e6173ad75780b45e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e12bb105b70387b5b0bd990f5663d01df602a096cac27206c780919d6020aca9eb429ede6bd1408510662b81505d41ad3ac801543170b6119407395df6f681e4
|
7
|
+
data.tar.gz: ac8d5f1dd08ad4f89b131c149e6d376585c388f90ba33ec91f34b0741e5808de37be02a3d186d827432c72caf5d6629901a0282fe01bd07698205af07ed595c0
|
data/README.md
CHANGED
@@ -42,7 +42,7 @@ Parts of `simple_menu_for` may be used for other purposes with:
|
|
42
42
|
2. `:add` - extra fields, which will be added in index. Symbol or Array
|
43
43
|
3. `:position` - extra fields starting position (from 0)
|
44
44
|
* `filter_for_main_fields klass, options`
|
45
|
-
1. `:options` - accept Hash of options for
|
45
|
+
1. `:options` - accept Hash of options for needed action, like `index: {products: { hint: 'click for select'}}`
|
46
46
|
* `form_for_main_fields klass`
|
47
47
|
|
48
48
|
Other feature is simple menu with 1 single nested klass. For it I made
|
@@ -38,7 +38,7 @@ module ActiveAdminSimpleLife
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# it check only for gender field for now
|
41
|
-
def filter_for_main_fields(klass)
|
41
|
+
def filter_for_main_fields(klass, options ={})
|
42
42
|
klass.main_fields.each do |f|
|
43
43
|
if f == :gender
|
44
44
|
filter ExtensionedSymbol.new(f).cut_id, collection: genders
|
@@ -30,9 +30,9 @@ module ActiveAdminSimpleLife
|
|
30
30
|
end
|
31
31
|
end if permitted_params
|
32
32
|
|
33
|
-
index_for_main_fields klass, options
|
34
|
-
filter_for_main_fields klass
|
35
|
-
form_for_main_fields klass
|
33
|
+
index_for_main_fields klass, options[:index]
|
34
|
+
filter_for_main_fields klass, option[:filter]
|
35
|
+
form_for_main_fields klass, options[:form]
|
36
36
|
end
|
37
37
|
end
|
38
38
|
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.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kvokka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|