Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 9c12e66748ea96a1f869946cac68259b13a70e86 1 parent bd65e7f
@foobarfighter foobarfighter authored stefanpenner committed
View
2  actionpack/lib/action_view/helpers/ajax_helper.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}
// ]]>
View
2  actionpack/test/javascript/ajax_test.rb
@@ -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.
Something went wrong with that request. Please try again.