Created
November 11, 2010 16:18
-
-
Save ignu/672707 to your computer and use it in GitHub Desktop.
This file contains 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
class BaseThing | |
end | |
class A < BaseThing end | |
class B < BaseThing end | |
case basething | |
when A: | |
redirect_to a_path(basething) | |
when B: | |
redirect_to b_path(basething) | |
ebd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment