Skip to content

Commit

Permalink
Fixed missing constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Tsoganov authored and Sergei Tsoganov committed Sep 19, 2023
1 parent 334fcc5 commit 27d6a56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/models/auction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ class Auction < ApplicationRecord
include Searchable
include PgSearch::Model

BLIND = '0'.freeze
ENGLISH = '1'.freeze

after_create :find_auction_turns
validates :domain_name, presence: true

Expand Down
3 changes: 3 additions & 0 deletions app/models/auction/searchable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
module Auction::Searchable
extend ActiveSupport::Concern

BLIND = '0'.freeze
ENGLISH = '1'.freeze

included do
scope :active, -> { where('starts_at <= ? AND ends_at >= ?', Time.now.utc, Time.now.utc) }
scope :without_result, lambda {
Expand Down

0 comments on commit 27d6a56

Please sign in to comment.