Created
October 7, 2009 20:53
-
-
Save recursive/204443 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def route_to_poly_controller(polymorphic_type, polymorphic_id, action = :show) | |
| return {:controller => polymorphic_type.tableize, :action => action, :id => polymorphic_id} | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment