mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
Fix remaining rubocop offenses
- Fix string literal style in doorkeeper.rb - Add missing final newlines - Remove trailing whitespace - Fix array bracket spacing in migrations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
8296e10246
commit
7aca5a2277
7 changed files with 10 additions and 10 deletions
|
@ -313,7 +313,7 @@ Doorkeeper.configure do
|
||||||
# for example.
|
# for example.
|
||||||
#
|
#
|
||||||
# Block javascript URIs but allow custom schemes
|
# Block javascript URIs but allow custom schemes
|
||||||
forbid_redirect_uri { |uri| uri.scheme.to_s.downcase == 'javascript' }
|
forbid_redirect_uri { |uri| uri.scheme.to_s.downcase == "javascript" }
|
||||||
|
|
||||||
# Allows to set blank redirect URIs for Applications in case Doorkeeper configured
|
# Allows to set blank redirect URIs for Applications in case Doorkeeper configured
|
||||||
# to use URI-less OAuth grant flows like Client Credentials or Resource Owner
|
# to use URI-less OAuth grant flows like Client Credentials or Resource Owner
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class AddSourceToApiKeys < ActiveRecord::Migration[7.2]
|
class AddSourceToApiKeys < ActiveRecord::Migration[7.2]
|
||||||
def change
|
def change
|
||||||
add_column :api_keys, :source, :string, default: "web"
|
add_column :api_keys, :source, :string, default: "web"
|
||||||
add_index :api_keys, [:user_id, :source]
|
add_index :api_keys, [ :user_id, :source ]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,6 +12,6 @@ class CreateMobileDevices < ActiveRecord::Migration[7.2]
|
||||||
t.timestamps
|
t.timestamps
|
||||||
end
|
end
|
||||||
add_index :mobile_devices, :device_id, unique: true
|
add_index :mobile_devices, :device_id, unique: true
|
||||||
add_index :mobile_devices, [:user_id, :device_id], unique: true
|
add_index :mobile_devices, [ :user_id, :device_id ], unique: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,6 +2,6 @@ class AddOwnerToOauthApplications < ActiveRecord::Migration[7.2]
|
||||||
def change
|
def change
|
||||||
add_column :oauth_applications, :owner_id, :uuid
|
add_column :oauth_applications, :owner_id, :uuid
|
||||||
add_column :oauth_applications, :owner_type, :string
|
add_column :oauth_applications, :owner_type, :string
|
||||||
add_index :oauth_applications, [:owner_id, :owner_type]
|
add_index :oauth_applications, [ :owner_id, :owner_type ]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue