authlogic_openid icon indicating copy to clipboard operation
authlogic_openid copied to clipboard

Gem of new version and small issue when using in test/console..

Open joost opened this issue 15 years ago • 0 comments

Can this Github repos be turned into gem? Now I only seem to find the 1.0.4 version :(

Also I get a 'nil.params?' error when using in console / test. Please see below for fix:

# This fixes the following error:
#  You have a nil object when you didn't expect it!
#  The error occurred while evaluating nil.params
module AuthlogicOpenid
  module ActsAsAuthentic
    module Methods

      def openid_complete?
        session_class.controller && session_class.controller.params[:open_id_complete] && session_class.controller.params[:for_model]
      end

    end
  end
end

joost avatar Sep 11 '09 08:09 joost