Class: ActionController::Routing::RouteSet
- Inherits:
-
Object
- Object
- ActionController::Routing::RouteSet
- Defined in:
- lib/simple_facebook_connect/extensions/routes.rb
Overview
without this hack people can’t override our routes when subclassing controllers in the app. trick stolen from clearance.
Instance Method Summary collapse
Instance Method Details
#load_routes_with_simple_facebook_connect! ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/simple_facebook_connect/extensions/routes.rb', line 3 def load_routes_with_simple_facebook_connect! lib_path = File.dirname(__FILE__) routes = File.join(lib_path, *%w[.. .. .. config simple_facebook_connect_routes.rb]) unless configuration_files.include?(routes) add_configuration_file(routes) end load_routes_without_simple_facebook_connect! end |