Skip to content

Commit

Permalink
Constants are symbols in 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed Jan 5, 2009
1 parent 297aee7 commit cc555ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rack/auth/openid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ def finish(consumer, session, req)
def add_extension ext, *args
if not ext.is_a? Module
raise TypeError, "#{ext.inspect} is not a module"
elsif not (m = %w'Request Response NS_URI' - ext.constants).empty?
elsif !(m = %w'Request Response NS_URI' -
ext.constants.map{ |c| c.to_s }).empty?
raise ArgumentError, "#{ext.inspect} missing #{m*', '}"
end

Expand Down

0 comments on commit cc555ce

Please sign in to comment.