rgeo / rgeo-activerecord

RGeo ActiveRecord extensions and tools for spatial connection adapters
Other
89 stars 64 forks source link

Active record default validations doesn't work #37

Closed ghost closed 7 years ago

ghost commented 7 years ago

After this merge: https://github.com/rails/rails/pull/18937, running the following line

# Require `belongs_to` associations by default. Previous versions had false.
Rails.application.config.active_record.belongs_to_required_by_default = true

will do something like:

ActiveRecord::Base.belongs_to_required_by_default = true

But when usingrgeo-activerecord:

ActiveRecord::Base.belongs_to_required_by_default
#=> nil

I couldn't dig enough to suggest a solution.

ghost commented 7 years ago

I'm closing this as this is no longer an issue to me