activeadmin_addons 0.3.2 → 0.3.3

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: 71e18a3988ecfac3f2e3864c11bfa9165358431f
4
- data.tar.gz: 6361794cb1baa1ca681cbd6a32ab86dc2dd8eaac
3
+ metadata.gz: 2f35c37abc3c6361e637fdfae4484dae518fd15d
4
+ data.tar.gz: 5a5a42f9603150ccc44af79854033b85bbbe5298
5
5
  SHA512:
6
- metadata.gz: f6a363040afce108390661461c9c539b1f8c00c685d453da61247d99f2a0d9386992bf98468c234992ad196ca2d8d30c76969c8569b6f80bb55268cae9075ebf
7
- data.tar.gz: 2764d29194e80e39a31720c1ecebaea789ee347297b8b194b287908bd78ef6a86ebc5a01f0252a22ecf3559fefb8e79031b64832d1f223bf59a6b61ff2db9983
6
+ metadata.gz: b7557d81447d3971dd35c7695e803ef28a3a3804169ab48bba821109fda268e2afafc2081a612b77729e8b4a97ddee66644098a61669ea2432d6baba19898c76
7
+ data.tar.gz: 9fd930622c5db38b81173452efa42bb4211da191598eafcbfefa195bf601ee0bfb8a03d9f6a4fd6eb174c513a963ad684db38904633ec486db9c56a880ab628c
@@ -117,7 +117,7 @@ class NestedSelectInput < Formtastic::Inputs::StringInput
117
117
  return unless attribute
118
118
  attribute_value = @object.send(attribute)
119
119
  return unless attribute_value
120
- klass = attribute.to_s.humanize.constantize
120
+ klass = attribute.to_s.chomp("_id").camelize.constantize
121
121
  klass.find_by_id(attribute_value)
122
122
  end
123
123
 
@@ -137,7 +137,7 @@ class NestedSelectInput < Formtastic::Inputs::StringInput
137
137
  url << "#{ActiveAdmin.application.default_namespace}/"
138
138
  end
139
139
 
140
- url << attribute.to_s.humanize.tableize
140
+ url << attribute.to_s.chomp("_id").tableize
141
141
 
142
142
  url.join("")
143
143
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveadminAddons
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_addons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties