From 2c765fa03f5633cda9f5975c8d65e21a907c98db Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 14 Nov 2025 09:39:41 -0500 Subject: [PATCH] rubocop: style fixes --- app/models/concerns/searchable.rb | 16 ++++++++-------- app/models/search/record.rb | 2 +- .../signups/completions_controller_test.rb | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/models/concerns/searchable.rb b/app/models/concerns/searchable.rb index fa080df1d..17e965298 100644 --- a/app/models/concerns/searchable.rb +++ b/app/models/concerns/searchable.rb @@ -18,8 +18,8 @@ module Searchable def update_in_search_index Search::Record.for_account(account_id).upsert_all( - [search_record_attributes.merge(id: ActiveRecord::Type::Uuid.generate)], - update_only: [:card_id, :board_id, :title, :content, :created_at] + [ search_record_attributes.merge(id: ActiveRecord::Type::Uuid.generate) ], + update_only: [ :card_id, :board_id, :title, :content, :created_at ] ) end @@ -43,10 +43,10 @@ module Searchable } end - # Models must implement these methods: - # - account_id: returns the account id - # - search_title: returns title string or nil - # - search_content: returns content string - # - search_card_id: returns the card id (self.id for cards, card_id for comments) - # - search_board_id: returns the board id + # Models must implement these methods: + # - account_id: returns the account id + # - search_title: returns title string or nil + # - search_content: returns content string + # - search_card_id: returns the card id (self.id for cards, card_id for comments) + # - search_board_id: returns the board id end diff --git a/app/models/search/record.rb b/app/models/search/record.rb index 0ae85c224..72cf39865 100644 --- a/app/models/search/record.rb +++ b/app/models/search/record.rb @@ -53,7 +53,7 @@ class Search::Record < ApplicationRecord scope :search, ->(query:, user:) do for_query(query: query, user: user) - .includes(:searchable, card: [:board, :creator]) + .includes(:searchable, card: [ :board, :creator ]) .select(:id, :searchable_type, :searchable_id, :card_id, :board_id, :account_id, :created_at, "#{connection.quote(query.terms)} AS query") .order(created_at: :desc) end diff --git a/gems/fizzy-saas/test/controllers/signups/completions_controller_test.rb b/gems/fizzy-saas/test/controllers/signups/completions_controller_test.rb index 0c049da6c..49628a188 100644 --- a/gems/fizzy-saas/test/controllers/signups/completions_controller_test.rb +++ b/gems/fizzy-saas/test/controllers/signups/completions_controller_test.rb @@ -21,7 +21,7 @@ class Signup::CompletionsControllerTest < ActionDispatch::IntegrationTest untenanted do post saas.signup_completion_path, params: { signup: { - full_name: @signup.full_name, + full_name: @signup.full_name } } end @@ -33,7 +33,7 @@ class Signup::CompletionsControllerTest < ActionDispatch::IntegrationTest untenanted do post saas.signup_completion_path, params: { signup: { - full_name: "", + full_name: "" } } end