mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Respond to all formats if none is specified.
This commit is contained in:
parent
8f20b13f84
commit
c8c84c77c6
2 changed files with 1 additions and 2 deletions
|
@ -16,6 +16,7 @@ module Devise
|
|||
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}!" }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue