Last active
December 14, 2015 09:49
-
-
Save Sailias/5067500 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
class MainSiteDomain | |
def self.matches?(request) | |
if request.host == DOMAIN | |
true | |
else | |
# custom domain | |
false | |
end | |
end | |
end |
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
constraints(MainSiteDomain) do | |
match "hello" => 'hello#say_hello' | |
end | |
constraints(OtherSiteDomian) do | |
match "/foo/hello" => 'hello#say_hello' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment