Skip to content

Commit

Permalink
Changed observe_field to field_observer
Browse files Browse the repository at this point in the history
  • Loading branch information
foobarfighter authored and stefanpenner committed Jan 27, 2010
1 parent 9c12e66 commit 5491a66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/ajax_helper.rb
Expand Up @@ -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}
// ]]>
Expand Down
2 changes: 1 addition & 1 deletion actionpack/test/javascript/ajax_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 5491a66

Please sign in to comment.