Permalink
Browse files

Be sure request.format is not nil (only reproducible in Rails < 3.0.4).

  • Loading branch information...
1 parent 56fd703 commit eeb61929ac01d06b71af2e1bb85c379fcf8965e8 @josevalim josevalim committed Apr 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/devise/controllers/internal_helpers.rb
@@ -15,7 +15,7 @@ def self.request_format(request)
request.format.ref
elsif MIME_REFERENCES
request.format
- else # Rails < 3.0.4
+ elsif request.format # Rails < 3.0.4
request.format.to_sym
end
end

0 comments on commit eeb6192

Please sign in to comment.