This helpers are useless outside oauth context.

This commit is contained in:
José Valim
2010-09-26 13:40:09 +02:00
parent 2169e5de97
commit fbac68d51a
2 changed files with 1 additions and 10 deletions

View File

@@ -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

View File

@@ -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?