提交 9c12e667 编写于 作者: B Bob Remeika 提交者: Stefan Penner

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

上级 bd65e7f7
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册