We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't override belongs_to_required_by_default when use activerecord-session_store.
use activerecord-session_store revision: b5e7da2
[config/application.rb] module AppName class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. config.load_defaults 5.1 [config/initializers/new_framework_defaults.rb] # Require `belongs_to` associations by default. Previous versions had false. Rails.application.config.active_record.belongs_to_required_by_default = false
In rails console:
> ActiveRecord::Base.belongs_to_required_by_default => true > Rails.application.config.active_record.belongs_to_required_by_default => false
When activerecord-session_store no use
> ActiveRecord::Base.belongs_to_required_by_default => false > Rails.application.config.active_record.belongs_to_required_by_default => false
The text was updated successfully, but these errors were encountered:
Reproduce rails/activerecord-session_store#116
ad0a8fe
``` irb(main):001:0> ActiveRecord::Base.belongs_to_required_by_default => true irb(main):002:0> Rails.application.config.active_record.belongs_to_required_by_default => false ```
I also encountered same problem. And it seems to be resolved by #126, but new version is not released yet.
@sikachu or @kaspth or someone else, could you release new version?
Sorry, something went wrong.
I guess a new version has been released since then, so this issue can be closed? @sikachu @rafaelfranca
No branches or pull requests
Don't override belongs_to_required_by_default when use activerecord-session_store.
use activerecord-session_store revision: b5e7da2
In rails console:
When activerecord-session_store no use
In rails console:
The text was updated successfully, but these errors were encountered: