Sha256: 49202c166242aece0b141b1144359bc2fddbe27e9d7876541aca4b2e8fae5ffe

Contents?: true

Size: 214 Bytes

Versions: 5

Compression:

Stored size: 214 Bytes

Contents

class LogoutPage < Page
  respond_to :get do
    with :html do
      logout
      response.redirect redirect_to.try(:path) || '/'
    end
    
    with :json do
      logout
      {success: true}
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yodel-0.0.7 lib/yodel/models/security/logout_page.rb
yodel-0.0.4 lib/yodel/models/security/logout_page.rb
yodel-0.0.3 lib/yodel/models/security/logout_page.rb
yodel-0.0.2 lib/yodel/models/security/logout_page.rb
yodel-0.0.1 lib/yodel/models/security/logout_page.rb