mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
another case of extra nil? check
This commit is contained in:
committed by
Aaron Patterson
parent
08a08d97dd
commit
618407db56
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user