Public Class methods
included(controller)
[show source]
# File lib/rodauth/oauth/railtie.rb 6 def self.included(controller) 7 # ActionController::API doesn't have helper methods 8 controller.helper_method :current_oauth_account, :current_oauth_application if controller.respond_to?(:helper_method) 9 end
Public Instance methods
current_oauth_account(name = nil)
[show source]
# File lib/rodauth/oauth/railtie.rb 11 def current_oauth_account(name = nil) 12 rodauth(name).current_oauth_account 13 end
current_oauth_application(name = nil)
[show source]
# File lib/rodauth/oauth/railtie.rb 15 def current_oauth_application(name = nil) 16 rodauth(name).current_oauth_application 17 end