Module: RedmineExtensions::RailsPatches::RouteSetGeneratorPatch
- Defined in:
- lib/redmine_extensions/rails_patches/route_set_generator_patch.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/redmine_extensions/rails_patches/route_set_generator_patch.rb', line 5 def self.included(base) base.class_eval do def use_relative_controller_with_redmine_extensions! return if current_controller && current_controller.start_with?('redmine_extensions') use_relative_controller_without_redmine_extensions! end alias_method_chain :use_relative_controller!, :redmine_extensions end end |