rubocop: more style fixes
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user