internetee-registry/app/controllers/registrar/profile_controller.rb
Artur Beljajev 9684c8e59f Refactor Devise integration
- Use scoped users
- Use the named route helpers instead of hardcoded paths
2018-06-20 12:21:22 +03:00

17 lines
275 B
Ruby

class Registrar
class ProfileController < BaseController
skip_authorization_check
helper_method :linked_users
def show
@user = current_registrar_user
end
private
def linked_users
current_registrar_user.linked_users
end
end
end