aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorErik St. Martin <alakriti@gmail.com>2010-01-26 11:06:58 -0500
committerStefan Penner <stefan.penner@gmail.com>2010-01-27 12:44:35 -0600
commit0215466832faddd2fc5ebef9500f06fa1b95228e (patch)
tree11a9f8c2d9dd60d8b681c247899bf138385ce7df /actionpack/lib
parent6a8da2053eb1e833347e5ed5dc578fc47cdf9309 (diff)
downloadrails-0215466832faddd2fc5ebef9500f06fa1b95228e.tar.gz
rails-0215466832faddd2fc5ebef9500f06fa1b95228e.tar.bz2
rails-0215466832faddd2fc5ebef9500f06fa1b95228e.zip
periodically_call_remote does not need data-observe=true
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/ajax_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/ajax_helper.rb b/actionpack/lib/action_view/helpers/ajax_helper.rb
index b570eb44a7..8d09ca1187 100644
--- a/actionpack/lib/action_view/helpers/ajax_helper.rb
+++ b/actionpack/lib/action_view/helpers/ajax_helper.rb
@@ -402,6 +402,9 @@ module ActionView
attributes = extract_observer_attributes!(options)
attributes["data-periodical"] = true
+ # periodically_call_remote does not need data-observe=true
+ attributes.delete('data-observe')
+
script_decorator(attributes)
end