Class: RemoteSubjectsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- RemoteSubjectsController
- Defined in:
- app/controllers/remote_subjects_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'app/controllers/remote_subjects_controller.rb', line 2 def index raise ActiveRecord::RecordNotFound if params[:q].blank? @remote_subject = RemoteSubject.find_or_create_by_webfinger_uri!(params[:q]) redirect_to @remote_subject end |
#show ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/controllers/remote_subjects_controller.rb', line 11 def show @remote_subject = RemoteSubject.find_by_slug!(params[:id]) if params[:refresh] @remote_subject.refresh_webfinger! end end |