In Rails 5, belongs_to is required by default. However, the initializer file for active record:
AfterParty.setup do |config|
# ==> ORM configuration
# Load and configure the ORM. Supports :active_record (default) and
# :mongoid (bson_ext recommended) by default. Other ORMs may be
# available as additional gems.
require "after_party/active_record.rb"
end
In Rails 5,
belongs_to
is required by default. However, the initializer file for active record:is turning that off, likely due to initialization order. Setting
in the
config/application.rb
restores the correct behavior, but it would be nice if the gem accounted for this without the override.