diff options
author | hiroshi <hiroshi3110@gmail.com> | 2008-11-03 14:09:07 +0900 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-14 12:07:52 +0100 |
commit | 94d6716324126028b89dde886f160474049b1b0c (patch) | |
tree | c40c86bb253900d68717684d0fbae89bc1936406 /actionpack/lib | |
parent | ff4ccb8334e4f5b5bdccbd5dc6876b4e43d9565e (diff) | |
download | rails-94d6716324126028b89dde886f160474049b1b0c.tar.gz rails-94d6716324126028b89dde886f160474049b1b0c.tar.bz2 rails-94d6716324126028b89dde886f160474049b1b0c.zip |
Make polymorphic_url compact given array [#1317 state:committed]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/polymorphic_routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/polymorphic_routes.rb b/actionpack/lib/action_controller/polymorphic_routes.rb index cc228c4230..2644c7f7c7 100644 --- a/actionpack/lib/action_controller/polymorphic_routes.rb +++ b/actionpack/lib/action_controller/polymorphic_routes.rb @@ -73,7 +73,7 @@ module ActionController # def polymorphic_url(record_or_hash_or_array, options = {}) if record_or_hash_or_array.kind_of?(Array) - record_or_hash_or_array = record_or_hash_or_array.dup + record_or_hash_or_array = record_or_hash_or_array.compact end record = extract_record(record_or_hash_or_array) |