mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 15:28:18 -05:00
This helpers are useless outside oauth context.
This commit is contained in:
@@ -5,15 +5,6 @@ module Devise
|
||||
module Helpers
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
helper_method :oauth_callback
|
||||
end
|
||||
|
||||
def oauth_callback #:nodoc:
|
||||
nil
|
||||
end
|
||||
alias :oauth_provider :oauth_callback
|
||||
|
||||
protected
|
||||
|
||||
# Overwrite expire_session_data_after_sign_in! so it removes all
|
||||
|
||||
@@ -9,7 +9,7 @@ module Devise
|
||||
end
|
||||
|
||||
included do
|
||||
helpers = %w(oauth_config)
|
||||
helpers = %w(oauth_callback oauth_provider oauth_config)
|
||||
hide_action *helpers
|
||||
helper_method *helpers
|
||||
before_filter :valid_oauth_callback?, :oauth_error_happened?
|
||||
|
||||
Reference in New Issue
Block a user