rubocop: more style fixes

This commit is contained in:
Mike Dalessio
2025-11-17 14:54:42 -05:00
parent f98478ee1e
commit e3ce26c53d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ class Card < ApplicationRecord
scope :reverse_chronologically, -> { order created_at: :desc, id: :desc }
scope :chronologically, -> { order created_at: :asc, id: :asc }
scope :latest, -> { order last_active_at: :desc, id: :desc }
scope :with_users, -> { preload(creator: [:avatar_attachment, :account], assignees: [:avatar_attachment, :account]) }
scope :preloaded, -> { with_users.preload(:column, :tags, :steps, :closure, :goldness, :activity_spike, :image_attachment, board: [:entropy], not_now: [ :user ]).with_rich_text_description_and_embeds }
scope :with_users, -> { preload(creator: [ :avatar_attachment, :account ], assignees: [ :avatar_attachment, :account ]) }
scope :preloaded, -> { with_users.preload(:column, :tags, :steps, :closure, :goldness, :activity_spike, :image_attachment, board: [ :entropy ], not_now: [ :user ]).with_rich_text_description_and_embeds }
scope :indexed_by, ->(index) do
case index
+1 -1
View File
@@ -2,6 +2,6 @@ if defined?(Rack::MiniProfiler)
Rack::MiniProfiler.config.tap do |config|
config.position = "top-right"
config.enable_hotwire_turbo_drive_support = true
config.pre_authorize_cb = -> (_env) { File.exist?(Rails.root.join("tmp/rack-mini-profiler-dev.txt")) }
config.pre_authorize_cb = ->(_env) { File.exist?(Rails.root.join("tmp/rack-mini-profiler-dev.txt")) }
end
end