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
| require 'rubygems' | |
| require 'usher' | |
| # according to README should be: | |
| # Usher::Util::Rails.activate | |
| # but above gives an error: vendor/plugins/usher/lib/usher/util/rails.rb:13: class definition in method body (SyntaxError) | |
| # - so instead we load appropriate interface manually: | |
| ActionController::Routing.module_eval "remove_const(:Routes); Routes = Usher::Interface.for(:rails23)" |
NewerOlder