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: a707c7ee7d8b8facfdc140848aead03ded07e871
4
- data.tar.gz: 14d81f1d3a363d39503b6677c90dfa4c606effab
3
+ metadata.gz: 6b6e35bdcd085fc37e07533d81d765b02594a18b
4
+ data.tar.gz: 2bba9c3d10dba1798423ee89ce68d029176aa829
5
5
  SHA512:
6
- metadata.gz: 1e450b90589c8eba50b914f24cbfb70f6af6460cdf6588b079896355def766bdf878f464fa555e1b13885539b6132dc90548ff1d8471eab26d18336d85ddb851
7
- data.tar.gz: f872f029753ebf20010d70ecdaf578bf76391fe7553b3aaeb78f3ef2fd287f8c541b94a606ee281ebbe14149c19d05046895de5423cc7dced8a7e27e859f8010
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(&:cut_id))
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
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveAdminSimpleLife
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
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.1.0
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-13 00:00:00.000000000 Z
11
+ date: 2016-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails