Permalink
Browse files

Changed data-rails-type to data-js-type

  • Loading branch information...
1 parent bd65e7f commit 9c12e66748ea96a1f869946cac68259b13a70e86 @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-rails-type="observe_field">
+ <script type="application/json" data-js-type="observe_field">
//<![CDATA[
#{options.to_json}
// ]]>
@@ -354,7 +354,7 @@ def field(options = {})
test "basic" do
assert_html field,
- %w(script type="application/json" data-rails-type="observe_field")
+ %w(script type="application/json" data-js-type="observe_field")
end
test "using a url string" do

0 comments on commit 9c12e66

Please sign in to comment.