diff options
author | Kristian Freeman <kristian@kristianfreeman.com> | 2013-11-26 12:09:52 -0800 |
---|---|---|
committer | Kristian Freeman <kristian@kristianfreeman.com> | 2013-12-06 10:57:37 -0800 |
commit | 1eaa521273399d789565af1933a0e6e4462511a4 (patch) | |
tree | 140f7337f0cccf9e6d2f2e0cd737138cfc8c3654 /actionview/lib | |
parent | 93c74e1b4d70dd1fab0c48da92c2dc05cc9338f4 (diff) | |
download | rails-1eaa521273399d789565af1933a0e6e4462511a4.tar.gz rails-1eaa521273399d789565af1933a0e6e4462511a4.tar.bz2 rails-1eaa521273399d789565af1933a0e6e4462511a4.zip |
A Cycle object should accept an array and cycle through it as it would
with a set of comma-separated objects.
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/text_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/text_helper.rb b/actionview/lib/action_view/helpers/text_helper.rb index b0e4aa3cd3..a6ff15af7e 100644 --- a/actionview/lib/action_view/helpers/text_helper.rb +++ b/actionview/lib/action_view/helpers/text_helper.rb @@ -314,7 +314,7 @@ module ActionView options = values.extract_options! name = options.fetch(:name, 'default') - values.unshift(first_value) + values.unshift(*first_value) cycle = get_cycle(name) unless cycle && cycle.values == values |