Fix Rubocop offenses
This commit is contained in:
@@ -2,7 +2,7 @@ module Authorization
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
before_action :ensure_can_access_account, if: -> { ApplicationRecord.current_tenant && Current.session}
|
||||
before_action :ensure_can_access_account, if: -> { ApplicationRecord.current_tenant && Current.session }
|
||||
end
|
||||
|
||||
class_methods do
|
||||
|
||||
@@ -10,7 +10,7 @@ class DropSessions < ActiveRecord::Migration[8.2]
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "user_agent"
|
||||
t.integer "user_id", null: false
|
||||
t.index ["user_id"], name: "index_sessions_on_user_id"
|
||||
t.index [ "user_id" ], name: "index_sessions_on_user_id"
|
||||
end
|
||||
|
||||
add_foreign_key "sessions", "users"
|
||||
|
||||
@@ -6,7 +6,7 @@ class CreateSessions < ActiveRecord::Migration[8.2]
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "user_agent"
|
||||
t.integer "identity_id", null: false
|
||||
t.index ["identity_id"], name: "index_sessions_on_identity_id"
|
||||
t.index [ "identity_id" ], name: "index_sessions_on_identity_id"
|
||||
end
|
||||
|
||||
add_foreign_key "sessions", "identities"
|
||||
|
||||
Reference in New Issue
Block a user