diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-09-30 02:27:13 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-30 08:11:35 +0800 |
commit | 618407db56b39a4130e05779339534ae2ebf883e (patch) | |
tree | 2e10a761788972ea9159daa3199c1388e50581ca /actionpack/lib/action_view | |
parent | 08a08d97dd1307ab9544cc55fbd398c6acdc4c89 (diff) | |
download | rails-618407db56b39a4130e05779339534ae2ebf883e.tar.gz rails-618407db56b39a4130e05779339534ae2ebf883e.tar.bz2 rails-618407db56b39a4130e05779339534ae2ebf883e.zip |
another case of extra nil? check
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 2 |
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 |