You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NoMethodError: undefined method to_sym' for ["provider_id", "license_key", "facility_id"]:Array Did you mean? to_s to_set /Users/dewaynevanhoozer/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rails-erd-1.7.2/lib/rails_erd/domain/attribute.rb:81:in block in foreign_key?'
The text was updated successfully, but these errors were encountered:
def foreign_key?
@domain
.relationships_by_entity_name(@model.name)
.map(&:associations)
.flatten
.map do |associaton|
result = associaton.send(Domain.foreign_key_method_name)
if result.class == Array
result.join("_").to_sym
else
result.to_sym
end
end.include?(name.to_sym)
end
NoMethodError: undefined method
to_sym' for ["provider_id", "license_key", "facility_id"]:Array Did you mean? to_s to_set /Users/dewaynevanhoozer/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rails-erd-1.7.2/lib/rails_erd/domain/attribute.rb:81:in
block in foreign_key?'The text was updated successfully, but these errors were encountered: