Compare commits
No commits in common. "e4dad698ea21cf5fcd5897631468c7083b7f0adf" and "6d61e8452a3087555bf2844debf7c9a0f333d0bc" have entirely different histories.
e4dad698ea
...
6d61e8452a
@ -1,7 +1,6 @@
|
||||
# Copyright (C) 2024 Manuel Bustillo
|
||||
|
||||
class ApplicationController < ActionController::Base
|
||||
before_action :set_tenant
|
||||
before_action :authenticate_user!
|
||||
after_action :set_csrf_cookie
|
||||
|
||||
@ -30,10 +29,6 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
private
|
||||
|
||||
def set_tenant
|
||||
ActsAsTenant.current_tenant = Wedding.find_by(slug: params[:slug])
|
||||
end
|
||||
|
||||
def development_swagger?
|
||||
Rails.env.test? ||
|
||||
Rails.env.development? && request.headers['referer']&.include?('/api-docs/index.html')
|
||||
|
Loading…
x
Reference in New Issue
Block a user