From fd9f58c7e1f33152e957688f8c919871c007958b Mon Sep 17 00:00:00 2001 From: DanielVajnagi <82052651+DanielVajnagi@users.noreply.github.com> Date: Mon, 2 Dec 2024 00:19:45 +0200 Subject: [PATCH] cop --- app/models/calculator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/calculator.rb b/app/models/calculator.rb index 020861825..393cf8cbb 100644 --- a/app/models/calculator.rb +++ b/app/models/calculator.rb @@ -36,7 +36,7 @@ class Calculator < ApplicationRecord validates :en_name, :uk_name, presence: true validates :en_name, :uk_name, length: { minimum: 3, maximum: 50 } validates :slug, presence: true, uniqueness: true - validates :color, format: { with: /\A#[0-9a-fA-F]{6}\z/} + validates :color, format: { with: /\A#[0-9a-fA-F]{6}\z/ } def self.ransackable_attributes(auth_object = nil) ["created_at", "id", "name", "preferable", "slug", "updated_at", "uuid"]