Class: Orcid::ApplicationController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/orcid/application_controller.rb

Overview

The foundation for Orcid controllers. A few helpful accessors.

Instance Method Summary collapse

Instance Method Details

#path_for(named_path, *args) {|args| ... } ⇒ Object

Providing a mechanism for overrding the default path in an implementing application

Yields:

  • (args)


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