Sha256: ff071e4bc85a72b5e1728106693b46db02788c8788c26381cbb27876f2f3829b

Contents?: true

Size: 550 Bytes

Versions: 7

Compression:

Stored size: 550 Bytes

Contents

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  before_action :authenticate_tenant!
  
     ##    milia defines a default max_tenants, invalid_tenant exception handling
     ##    but you can override these if you wish to handle directly
  rescue_from ::Milia::Control::MaxTenantExceeded, :with => :max_tenants
  rescue_from ::Milia::Control::InvalidTenantAccess, :with => :invalid_tenant
 
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
milia-1.2.1 test/app/controllers/application_controller.rb
milia-1.2.0 test/app/controllers/application_controller.rb
milia-1.1.1 test/app/controllers/application_controller.rb
milia-1.0.1 test/app/controllers/application_controller.rb
milia-1.1.0 test/app/controllers/application_controller.rb
kinokero-0.0.5 test/app/controllers/application_controller.rb
milia-1.0.0 test/app/controllers/application_controller.rb