err_supply 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/err_supply/version.rb +1 -1
- data/lib/err_supply/view_helpers.rb +1 -1
- metadata +4 -4
data/lib/err_supply/version.rb
CHANGED
@@ -5,7 +5,7 @@ module ErrSupply
|
|
5
5
|
# triggers a custom event on the associated form element.
|
6
6
|
#
|
7
7
|
def err_supply(obj, options={})
|
8
|
-
id = obj.new_record? ?
|
8
|
+
id = obj.new_record? ? dom_id(obj) : dom_id(obj, :edit)
|
9
9
|
h = err_supply_hash(obj, options.merge({ :prefix => obj.class.name.underscore }))
|
10
10
|
|
11
11
|
"$('##{id}').trigger('err_supply:loaded', #{h.to_json});".html_safe
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: err_supply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Coroutine
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-06-
|
19
|
+
date: 2011-06-16 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|