Skip to content

Commit

Permalink
cop
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVajnagi committed Dec 1, 2024
1 parent 09f572b commit fd9f58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit fd9f58c

Please sign in to comment.