Some times you need to skip some before filter actions on Devise Gem’s Controller.
For example you wants to check for subdomain or you applied some custom restrictions on site pages by using before_filters.
Its is very easy to skip methods on devise controllers call.
Steps:
In config/applictions.rb write something like this:
config.to_prepare do
Devise::SessionsController.skip_before_filter :verify_is_admin, :authenticate_admin!
Devise::PasswordsController.skip_before_filter :subdomain
end
and don’t forget to restart your server. 🙂
Advertisements
Leave a Reply