Skip to content

Commit

Permalink
added redirect to raptjs.com
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Wallace committed Feb 24, 2011
1 parent 2ed93ed commit 4a89638
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rails/app/controllers/application_controller.rb
@@ -1,4 +1,10 @@
class ApplicationController < ActionController::Base
before_filter :check_uri

def check_uri
redirect_to request.protocol + 'raptjs.com' + request.request_uri if request.host =~ /^raptjs.heroku.com/
end

protect_from_forgery

def index
Expand Down

0 comments on commit 4a89638

Please sign in to comment.