mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Changed data-rails-type to data-js-type
This commit is contained in:
committed by
Stefan Penner
parent
efb70f0f9f
commit
081e057b17
@@ -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}
|
||||
// ]]>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user