Skip to content

Commit

Permalink
Respond to all formats if none is specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Dec 29, 2010
1 parent 8f20b13 commit c8c84c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions lib/devise/controllers/internal_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module InternalHelpers #:nodoc:
helper_method *helpers

prepend_before_filter :is_devise_resource?
respond_to *Mime::SET.map(&:to_sym) if mimes_for_respond_to.empty?

Devise.routes_prepare do
skip_before_filter *Devise.mappings.keys.map { |m| :"authenticate_#{m}!" }
Expand Down
2 changes: 0 additions & 2 deletions test/rails_app/app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

class ApplicationController < ActionController::Base
protect_from_forgery
respond_to :html, :xml, :json

before_filter :current_user
before_filter :authenticate_user!, :if => :devise_controller?
end

0 comments on commit c8c84c7

Please sign in to comment.