diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-26 14:26:42 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-26 14:26:42 +0200 |
commit | c1b5e2a2d5a59eebe017f63088b9478b7151d6d2 (patch) | |
tree | 1ff41d8b9c9060cc7f168b38bc07b220ca2e715f /railties | |
parent | 0f9eedf6de72f4afacde6d7075c588a7a6fd3ad6 (diff) | |
parent | e72406e2ba3cd3a5d72fea6219f152640e2e7479 (diff) | |
download | rails-c1b5e2a2d5a59eebe017f63088b9478b7151d6d2.tar.gz rails-c1b5e2a2d5a59eebe017f63088b9478b7151d6d2.tar.bz2 rails-c1b5e2a2d5a59eebe017f63088b9478b7151d6d2.zip |
Merge remote branch 'rails/master'
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 2 | ||||
-rw-r--r-- | railties/lib/rails/tasks/routes.rake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 9b3bb1da15..561bae3be8 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -2226,7 +2226,7 @@ There's also a related idiom that uses the splat operator: [*object] </ruby> -which returns +[nil]+ for +nil+, and calls to <tt>Array(object)</tt> otherwise +which in Ruby 1.8 returns +[nil]+ for +nil+, and calls to <tt>Array(object)</tt> otherwise. (Please if you know the exact behavior in 1.9 contact fxn.) Thus, in this case the behavior is different for +nil+, and the differences with <tt>Kernel#Array</tt> explained above apply to the rest of +object+s. diff --git a/railties/lib/rails/tasks/routes.rake b/railties/lib/rails/tasks/routes.rake index 65cf79a0a2..306c88c261 100644 --- a/railties/lib/rails/tasks/routes.rake +++ b/railties/lib/rails/tasks/routes.rake @@ -23,7 +23,7 @@ task :routes => :environment do {:name => name, :verb => route.verb.to_s, :path => route.path, :reqs => reqs} end - routes.reject! { |r| r[:path] == "/rails/info/properties" } # Skip the route if it's internal info route + routes.reject! { |r| r[:path] =~ %r{/rails/info/properties} } # Skip the route if it's internal info route name_width = routes.map{ |r| r[:name] }.map(&:length).max verb_width = routes.map{ |r| r[:verb] }.map(&:length).max |