Module: MerbAuthSlicePassword::ExceptionsMixin
- Defined in:
- app/controllers/exceptions.rb
Overview
the mixin to provide the exceptions controller action for Unauthenticated
Instance Method Summary collapse
Instance Method Details
#unauthenticated ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/exceptions.rb', line 3 def unauthenticated provides :xml, :js, :json, :yaml case content_type when :html render else basic_authentication.request! "" end end |