Class: Orcid::ProfileConnectionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Orcid::ProfileConnectionsController
- Defined in:
- app/controllers/orcid/profile_connections_controller.rb
Overview
Responsible for negotiating a user request Profile Creation.
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
19 20 21 22 23 24 |
# File 'app/controllers/orcid/profile_connections_controller.rb', line 19 def create return false if redirecting_because_user_has_connected_orcid_profile assign_attributes(new_profile_connection) create_profile_connection(new_profile_connection) respond_with(orcid, new_profile_connection) end |
#index ⇒ Object
7 8 9 10 11 |
# File 'app/controllers/orcid/profile_connections_controller.rb', line 7 def index redirecting_because_user_does_not_have_a_connected_orcid_profile || redirecting_because_user_must_verify_their_connected_profile || redirecting_because_user_has_verified_their_connected_profile end |
#new ⇒ Object
13 14 15 16 17 |
# File 'app/controllers/orcid/profile_connections_controller.rb', line 13 def new return false if redirecting_because_user_has_connected_orcid_profile assign_attributes(new_profile_connection) respond_with(orcid, new_profile_connection) end |