Permalink
Browse files

Changed observe_field to field_observer

  • Loading branch information...
1 parent 9c12e66 commit 5491a663da4bc8a26eb40fb59491199ce253d140 @foobarfighter foobarfighter committed with stefanpenner Oct 8, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 actionpack/lib/action_view/helpers/ajax_helper.rb
  2. +1 −1 actionpack/test/javascript/ajax_test.rb
@@ -102,7 +102,7 @@ def observe_field(name, options = {})
options[:name] = name
<<-SCRIPT
- <script type="application/json" data-js-type="observe_field">
+ <script type="application/json" data-js-type="field_observer">
//<![CDATA[
#{options.to_json}
// ]]>
@@ -354,7 +354,7 @@ def field(options = {})
test "basic" do
assert_html field,
- %w(script type="application/json" data-js-type="observe_field")
+ %w(script type="application/json" data-js-type="field_observer")
end
test "using a url string" do

0 comments on commit 5491a66

Please sign in to comment.