aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-09-30 02:27:13 +0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-30 08:11:35 +0800
commit618407db56b39a4130e05779339534ae2ebf883e (patch)
tree2e10a761788972ea9159daa3199c1388e50581ca /actionpack/lib
parent08a08d97dd1307ab9544cc55fbd398c6acdc4c89 (diff)
downloadrails-618407db56b39a4130e05779339534ae2ebf883e.tar.gz
rails-618407db56b39a4130e05779339534ae2ebf883e.tar.bz2
rails-618407db56b39a4130e05779339534ae2ebf883e.zip
another case of extra nil? check
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index 3bc5afc2c4..94348cf9fa 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -365,7 +365,7 @@ module ActionView
# <% end %>
def current_cycle(name = "default")
cycle = get_cycle(name)
- cycle.current_value unless cycle.nil?
+ cycle.current_value if cycle
end
# Resets a cycle so that it starts from the first element the next time