err_supply 0.0.5 → 0.0.6

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.
@@ -1,3 +1,3 @@
1
1
  module ErrSupply
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -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? ? "new_#{dom_id(obj)}" : "edit_#{dom_id(obj)}"
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
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-14 00:00:00 -05:00
19
+ date: 2011-06-16 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency