Skip to content

Commit

Permalink
fix: warning: already initialized constant Avo::Concerns::HasFieldDis…
Browse files Browse the repository at this point in the history
…covery::COLUMN_NAMES_TO_IGNORE
  • Loading branch information
Paul-Bob committed Feb 26, 2025
1 parent 701c291 commit 3d2191e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/avo/concerns/has_field_discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ module Concerns
module HasFieldDiscovery
extend ActiveSupport::Concern

COLUMN_NAMES_TO_IGNORE = %i[
encrypted_password reset_password_token reset_password_sent_at remember_created_at password_digest
].freeze
if !defined?(COLUMN_NAMES_TO_IGNORE)
COLUMN_NAMES_TO_IGNORE = %i[
encrypted_password reset_password_token reset_password_sent_at remember_created_at password_digest
].freeze
end

class_methods do
def column_names_mapping
Expand Down

0 comments on commit 3d2191e

Please sign in to comment.