diff --git a/lib/devise/oauth/helpers.rb b/lib/devise/oauth/helpers.rb index b825c39d..7075f614 100644 --- a/lib/devise/oauth/helpers.rb +++ b/lib/devise/oauth/helpers.rb @@ -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 diff --git a/lib/devise/oauth/internal_helpers.rb b/lib/devise/oauth/internal_helpers.rb index caa01ae0..e2746f34 100644 --- a/lib/devise/oauth/internal_helpers.rb +++ b/lib/devise/oauth/internal_helpers.rb @@ -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?