Class: Orcid::ApplicationController
- Inherits:
-
Object
- Object
- Orcid::ApplicationController
- Defined in:
- app/controllers/orcid/application_controller.rb
Overview
The foundation for Orcid controllers. A few helpful accessors.
Direct Known Subclasses
Instance Method Summary collapse
-
#path_for(named_path, *args) {|args| ... } ⇒ Object
Providing a mechanism for overrding the default path in an implementing application.
Instance Method Details
#path_for(named_path, *args) {|args| ... } ⇒ Object
Providing a mechanism for overrding the default path in an implementing application
6 7 8 9 |
# File 'app/controllers/orcid/application_controller.rb', line 6 def path_for(named_path, *args) return send(named_path, *args).to_s if respond_to?(named_path) yield(*args) end |