active_admin_simple_life 0.1.0 → 0.1.1
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: 6b6e35bdcd085fc37e07533d81d765b02594a18b
|
4
|
+
data.tar.gz: 2bba9c3d10dba1798423ee89ce68d029176aa829
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f0555775171dd4f8e041ee252dfc524be4cf00d52225f110c9bbdf9b0760f50758eb3985398b2789652f85ecb0348cb643ca8b3e039990fe712ec4f46aebf47
|
7
|
+
data.tar.gz: 85816ccfd0ef771e0deab49d73b9903d7bf94cc97896b7c702674cc9d859b7aea2d947cd7165d431047c6d52d7f5c85bea42f71e7a41c02ffc6091e5037b96ff
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module ActiveAdminSimpleLife
|
3
3
|
module SimpleMenu
|
4
|
+
include Extensions
|
4
5
|
# for proper work, model must have class method `mail_fields`, which return array of field symbols.
|
5
6
|
# references write as is, like `foo_id`
|
6
7
|
#
|
@@ -25,7 +26,7 @@ module ActiveAdminSimpleLife
|
|
25
26
|
controller do
|
26
27
|
def scoped_collection
|
27
28
|
permitted_params = self.class.class_variable_get :@@permitted_params
|
28
|
-
self.class.class_variable_get(:@@klass).includes(*permitted_params.map(
|
29
|
+
self.class.class_variable_get(:@@klass).includes(*permitted_params.map{|symbol| ExtensionedSymbol.new(symbol).cut_id})
|
29
30
|
end
|
30
31
|
end if permitted_params
|
31
32
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kvokka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|