Fix Rubocop offenses

This commit is contained in:
Stanko K.R.
2025-10-31 16:35:44 +01:00
parent 38244b77eb
commit 085c7fee2e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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"