aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/prototype_helper.rb
diff options
context:
space:
mode:
authorErik St. Martin <alakriti@gmail.com>2010-01-24 08:33:27 -0500
committerStefan Penner <stefan.penner@gmail.com>2010-01-27 12:44:33 -0600
commit9f5cb3d3b48d0e7d702144d87208ac18778e3d38 (patch)
tree8698e05953dce7ee134cc2731ac95536a288ff3b /actionpack/lib/action_view/helpers/prototype_helper.rb
parent37ad57596b7afdf38be443f06130b736539dd2af (diff)
downloadrails-9f5cb3d3b48d0e7d702144d87208ac18778e3d38.tar.gz
rails-9f5cb3d3b48d0e7d702144d87208ac18778e3d38.tar.bz2
rails-9f5cb3d3b48d0e7d702144d87208ac18778e3d38.zip
moving include of ScriptaculousHelper into PrototypeHelper, ActionView should know as little as possible about individual frameworks
Diffstat (limited to 'actionpack/lib/action_view/helpers/prototype_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/prototype_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb
index 2bd6afba56..d861810f19 100644
--- a/actionpack/lib/action_view/helpers/prototype_helper.rb
+++ b/actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -1,6 +1,7 @@
require 'set'
require 'active_support/json'
require 'active_support/core_ext/object/returning'
+require 'action_view/helpers/scriptaculous_helper'
module ActionView
module Helpers
@@ -73,6 +74,8 @@ module ActionView
# See JavaScriptGenerator for information on updating multiple elements
# on the page in an Ajax response.
module PrototypeHelper
+ include ScriptaculousHelper
+
unless const_defined? :CALLBACKS
CALLBACKS = Set.new([ :create, :uninitialized, :loading, :loaded,
:interactive, :complete, :failure, :success ] +