diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2010-06-21 22:11:12 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-21 23:34:45 +0200 |
commit | dad71c6099e0e5cfb50f574853255e1abc255c34 (patch) | |
tree | 6f8305feda08c5f617554d2c5b0037c702cb6829 /actionpack/lib/action_view/helpers/scriptaculous_helper.rb | |
parent | 0421fb7a913c1c8a7e07a395106bbc65e75e9d45 (diff) | |
download | rails-dad71c6099e0e5cfb50f574853255e1abc255c34.tar.gz rails-dad71c6099e0e5cfb50f574853255e1abc255c34.tar.bz2 rails-dad71c6099e0e5cfb50f574853255e1abc255c34.zip |
removed 'unless const_defined?' code smell
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_view/helpers/scriptaculous_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/scriptaculous_helper.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/scriptaculous_helper.rb b/actionpack/lib/action_view/helpers/scriptaculous_helper.rb index 7f7776e9c0..8610c2469e 100644 --- a/actionpack/lib/action_view/helpers/scriptaculous_helper.rb +++ b/actionpack/lib/action_view/helpers/scriptaculous_helper.rb @@ -4,7 +4,7 @@ require 'active_support/json' module ActionView # = Action View Scriptaculous Helpers module Helpers - # Provides a set of helpers for calling Scriptaculous[http://script.aculo.us/] + # Provides a set of helpers for calling Scriptaculous[http://script.aculo.us/] # JavaScript functions, including those which create Ajax controls and visual # effects. # @@ -18,9 +18,7 @@ module ActionView # See the documentation at http://script.aculo.us for more information on # using these helpers in your application. module ScriptaculousHelper - unless const_defined? :TOGGLE_EFFECTS - TOGGLE_EFFECTS = [:toggle_appear, :toggle_slide, :toggle_blind] - end + TOGGLE_EFFECTS = [:toggle_appear, :toggle_slide, :toggle_blind] # Returns a JavaScript snippet to be used on the Ajax callbacks for # starting visual effects. |