aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorBob Remeika <bob.remeika@gmail.com>2009-10-07 23:21:30 -0700
committerStefan Penner <stefan.penner@gmail.com>2010-01-27 12:44:29 -0600
commitc1ce17a5f428dc48711299cfd5851798f1018a33 (patch)
tree0d93a6925a85b433fe80350486c3ab4d31d625ca /actionpack
parent081e057b174620993bdf4e534f5aba3fe266e88e (diff)
downloadrails-c1ce17a5f428dc48711299cfd5851798f1018a33.tar.gz
rails-c1ce17a5f428dc48711299cfd5851798f1018a33.tar.bz2
rails-c1ce17a5f428dc48711299cfd5851798f1018a33.zip
Changed observe_field to field_observer
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/ajax_helper.rb2
-rw-r--r--actionpack/test/javascript/ajax_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/ajax_helper.rb b/actionpack/lib/action_view/helpers/ajax_helper.rb
index 246ad10371..f4da540f42 100644
--- a/actionpack/lib/action_view/helpers/ajax_helper.rb
+++ b/actionpack/lib/action_view/helpers/ajax_helper.rb
@@ -79,7 +79,7 @@ module ActionView
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}
// ]]>
diff --git a/actionpack/test/javascript/ajax_test.rb b/actionpack/test/javascript/ajax_test.rb
index 90aa2821ec..41bfdbd9b9 100644
--- a/actionpack/test/javascript/ajax_test.rb
+++ b/actionpack/test/javascript/ajax_test.rb
@@ -354,7 +354,7 @@ class ObserveFieldTest < AjaxTestCase
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