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

This commit is contained in:
Bob Remeika
2009-10-07 20:52:46 -07:00
committed by Stefan Penner
parent efb70f0f9f
commit 081e057b17
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ module ActionView
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}
// ]]>

View File

@@ -354,7 +354,7 @@ class ObserveFieldTest < AjaxTestCase
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