mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Changed observe_field to field_observer
This commit is contained in:
committed by
Stefan Penner
parent
9c12e66748
commit
5491a663da
@@ -102,7 +102,7 @@ module ActionView
|
||||
options[:name] = name
|
||||
|
||||
<<-SCRIPT
|
||||
<script type="application/json" data-js-type="observe_field">
|
||||
<script type="application/json" data-js-type="field_observer">
|
||||
//<![CDATA[
|
||||
#{options.to_json}
|
||||
// ]]>
|
||||
|
||||
@@ -354,7 +354,7 @@ class ObserveFieldTest < AjaxTestCase
|
||||
|
||||
test "basic" do
|
||||
assert_html field,
|
||||
%w(script type="application/json" data-js-type="observe_field")
|
||||
%w(script type="application/json" data-js-type="field_observer")
|
||||
end
|
||||
|
||||
test "using a url string" do
|
||||
|
||||
Reference in New Issue
Block a user