Module: Bbq::Rails::Routes
- Defined in:
- lib/bbq/rails/routes.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/bbq/rails/routes.rb', line 4 def self.included(klass) klass.send(:include, ::ActionDispatch::Routing::UrlFor) klass.send(:include, ::Rails.application.routes.url_helpers) unless ::Rails.version < "3.1" klass.send(:include, ::ActionDispatch::Routing::RouteSet::MountedHelpers) end end |