Methods
- W
Class Public methods
# File actionpack/lib/action_controller/railties/paths.rb, line 4 4: def self.with(app) 5: Module.new do 6: define_method(:inherited) do |klass| 7: super(klass) 8: 9: if namespace = klass.parents.detect { |m| m.respond_to?(:railtie_helpers_paths) } 10: paths = namespace.railtie_helpers_paths 11: else 12: paths = app.helpers_paths 13: end 14: 15: klass.helpers_path = paths 16: 17: if klass.superclass == ActionController::Base && ActionController::Base.include_all_helpers 18: klass.helper :all 19: end 20: end 21: end 22: end