- Nothing yet
- View Full Diff
- #31 - Fix SchemaMigration parent class mistmatch for Rails 7.1+
- View Full Diff
- #26 - Fix for Rails 6.0.x where CollectionAssociation defines its own implementation of build_record
- #25 - Fix for Rails 6.1+ - The override of
build_through_record
was putting the new through_records in the wrong place and making it so that they would not be saved when the root record was a new record - View Full Diff
- #24 - Fix bug introdcued in #21 &
v1.8.0
where the scope chain on associations wasnt preserving the values - View Full Diff
- #22 - Do not raise connection error on
attr_accessible
andattr_protected
if database does not yet exist - #21 - Fix leaky scope with
first_or_create
on Rails 5.2+ - View Full Diff
- #20 - Fix bug when calling
first_or_initialize
on an association relation - 60da8e1 - Add warning at end of default rake task to highlight the requirement to run the tests with
appraisal
- c38a230 - Added db setup and reloading to
rake console
task for easier debugging - View Full Diff
- #18 - Fix for Rails 6+ for new records that were supposed to be created issuing UPDATE sql calls instead of INSERT. They would come back thinking they were persisted, but they didn't have an id attribute because of the invalid sql call made.
- Fix method redefined warning for ThroughAssociation#build_record
- Fix method redefined warning for HasManyThroughAssociation#options_for_through_association for Rails <= 5.2
- Add Rails 6.0 to test matrix
- View Full Diff
- #13 - Fixed with_indifferent_access call in nested attributes
- #14 - For ActiveRecord versions >= 5.2.3 Rails does not call
options_for_through_record
anymore. This method was previously used byprotected_attributes
to pass in thewithout_protection: true
option. We now override thebuild_through_record
method instead and pass the option in there. - View Full Diff
- Add Rails 5.2 support
- Fix bug related to incorrect usage of options on the
AR#new
method - Use
scope_for_create
instead ofcreate_scope
in Rails 5.2+ - Fix bug related to protection of
inheritance_column
attribute - Use Appraisal for testing against multple Rails versions
- View Full Diff
- Add Rails 5.1 support
- Dont require activerecord in non-activerecord environments
- Drop support for Rails 4, it now only support Rails 5
- View Full Diff
- Fixed params type checking with nested attributes
- View Full Diff
- Fixed ArgumentError with nested attributes
- View Full Diff
- Fix for Rails 5
- View Full Diff
- Fix for Rails 5
- View Full Diff
- Added Rails 5 support, already works just needed the gemspec updated to allow it
- New repo
protected_attributes_continued
because Rails refuses to support Rails 5 - View Full Diff
-
Avoid double callbacks in Rails >= 4.1.
-
Fixes UnitializedConstant in TooManyRecords.
- Fix deprecation code.
-
Deprecate
config.active_record.whitelist_attributes
. -
Fix integration with associations.
-
Fix strong parameters integration.
-
Remove warnings
-
Fix
find_or_*
andfirst_or_*
methods integration.
-
Integrate with strong parameters. This allows to migrate a codebase partially from
protected_attributes
tostrong_parameters
. Every model that does not use a protection macro (attr_accessible
orattr_protected
), will be protected by strong parameters. The behavior stays the same for models, which use a protection macro.To fully restore the old behavior set:
config.action_controller.permit_all_parameters = true
Or add a callback to your controllers like this:
before_action { params.permit! }
Fixes #41.
-
Fixes ThroughAssociation#build_record method on rails 4.1.10+
Fixes #60, #63
-
Fixes build_association method on rails 4.2.0+
Fixes rails/rails#18121
-
Support Rails 4.0.6+ and 4.1.2+.
Fixes #35
- Fix STI support on Active Record <= 4.0.3.
-
Support to Rails 4.1
-
Fix
CollectionProxy#new
method.Fixes #21
- Fix install error with Rails 4.0.1. Related with rubygems/bundler#2583
-
Avoid override the entire Active Record initialization.
Fixes rails/rails#12243
-
Fix "uninitialized constant ActiveRecord::MassAssignmentSecurity::NestedAttributes::ClassMethods::REJECT_ALL_BLANK_PROC" error when using
:all_blank
option.Fixes #8
-
Fix
NoMethodError
exception when callingraise_nested_attributes_record_not_found
.
-
Sync #initialize override to latest rails implementation
Fixes #14
-
Fix "uninitialized constant
ActiveRecord::SchemaMigration
" error when checking pending migrations.Fixes rails/rails#10109
- First public version