diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-08 13:33:18 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-08 13:34:07 -0700 |
commit | 86fc43fd584726ba81b1a3b3e0a6f6000c1f4cc8 (patch) | |
tree | ae5b6811931cb2903bf3a54a7211316f4e43589e /actionpack/lib/action_controller/routing | |
parent | 00ee990443189649e481b2c30945e7a1029d8280 (diff) | |
download | rails-86fc43fd584726ba81b1a3b3e0a6f6000c1f4cc8.tar.gz rails-86fc43fd584726ba81b1a3b3e0a6f6000c1f4cc8.tar.bz2 rails-86fc43fd584726ba81b1a3b3e0a6f6000c1f4cc8.zip |
ActionPack components should no longer have undeclared dependencies.
* Tests can be run in isolation
* Dependencies added
* A few tests modified to avoid depending on AS deps
not depended on my files they were testing
Diffstat (limited to 'actionpack/lib/action_controller/routing')
-rw-r--r-- | actionpack/lib/action_controller/routing/resources.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/routing/resources.rb b/actionpack/lib/action_controller/routing/resources.rb index 05c782d226..2dee0a3d87 100644 --- a/actionpack/lib/action_controller/routing/resources.rb +++ b/actionpack/lib/action_controller/routing/resources.rb @@ -150,9 +150,9 @@ module ActionController end if only - @allowed_actions[:only] = Array(only).map(&:to_sym) + @allowed_actions[:only] = Array(only).map {|a| a.to_sym } elsif except - @allowed_actions[:except] = Array(except).map(&:to_sym) + @allowed_actions[:except] = Array(except).map {|a| a.to_sym } end end |