diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-09-06 20:47:25 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-08 19:27:59 +0200 |
commit | 18aee333359a4dea6847754f3055ce223aa2474c (patch) | |
tree | 1593b92ca59e5398151fe6e786b197b33cbc9736 /actionpack/lib/action_dispatch/routing | |
parent | a5d894ce566a21ec4c5db9df06be7f22a1690691 (diff) | |
download | rails-18aee333359a4dea6847754f3055ce223aa2474c.tar.gz rails-18aee333359a4dea6847754f3055ce223aa2474c.tar.bz2 rails-18aee333359a4dea6847754f3055ce223aa2474c.zip |
Do not require passing :app to mounted helpers, it's actually useless and not DRY
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 956bd2e719..19a277a18c 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -262,7 +262,7 @@ module ActionDispatch module MountedHelpers end - def mounted_helpers(name = nil) + def mounted_helpers(name = :app) define_mounted_helper(name) if name MountedHelpers end |