err_supply 0.1.8 → 0.1.9
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 +4 -4
- data/lib/err_supply/controller_helpers.rb +2 -2
- data/lib/err_supply/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4577a0f43154f67f613dd3e05c79ae6914e8709c
|
4
|
+
data.tar.gz: f9c023c64129d272e754ac5db84040987a4143d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a44afbe3018ce2e4fef4361b31fe281b296892de5e9ff6dd485f91767f278803290fcecada720cd284240d5a4d9fff2f7dc2830618b8e89cc2a80509bf670f0
|
7
|
+
data.tar.gz: 6cf042b7ae506342fa556f7ca69f52c3e33ebbf70514d41eb0358ea11f142962f45233b5b80f7521b9e8ddda415eae3c0b4d0bfeddc37ecbb636e0164311a563
|
@@ -43,7 +43,7 @@ module ErrSupply
|
|
43
43
|
# apply errors that match our list (slightly inefficient, but a touch easier to read)
|
44
44
|
attrs.each do |attr|
|
45
45
|
o = options[attr.to_sym] || {}
|
46
|
-
id = "#{
|
46
|
+
id = [prefix, "#{(o[:key] || attr).to_s}"].join('_')
|
47
47
|
|
48
48
|
unless h.has_key?(id)
|
49
49
|
h[id] = {
|
@@ -70,7 +70,7 @@ module ErrSupply
|
|
70
70
|
c_options = options[assoc_name.to_sym] || {}
|
71
71
|
obj.send("#{assoc_name}").each_with_index do |child, index|
|
72
72
|
if !child.errors.empty? or child.invalid?
|
73
|
-
c_prefix = "#{
|
73
|
+
c_prefix = [prefix, "#{assoc_name}_attributes_#{index}"].join('_')
|
74
74
|
c_hash = err_supply_hash(child, c_options.merge({ :prefix => c_prefix }))
|
75
75
|
|
76
76
|
h.merge!(c_hash)
|
data/lib/err_supply/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: err_supply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Coroutine
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|