Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Latest commit

 

History

History
207 lines (119 loc) · 7.59 KB

CHANGELOG.md

File metadata and controls

207 lines (119 loc) · 7.59 KB

CHANGELOG

Unreleased

v1.9.0 - 2023-10-17

v1.8.2 - 2021-07-13

  • #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

1.8.1 - 2021-03-24

  • #24 - Fix bug introdcued in #21 & v1.8.0 where the scope chain on associations wasnt preserving the values
  • View Full Diff

1.8.0 - 2021-03-06

  • #22 - Do not raise connection error on attr_accessible and attr_protected if database does not yet exist
  • #21 - Fix leaky scope with first_or_create on Rails 5.2+
  • View Full Diff

1.7.0 - 2020-10-24

  • #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

1.6.0 - 2020-10-01

  • #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

1.5.0 - 2019-08-16

  • #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 by protected_attributes to pass in the without_protection: true option. We now override the build_through_record method instead and pass the option in there.
  • View Full Diff

1.4.0 - 2018-12-28

  • Add Rails 5.2 support
  • Fix bug related to incorrect usage of options on the AR#new method
  • Use scope_for_create instead of create_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

1.3.0 - 2017-05-05

  • 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

1.2.4 - 2017-05-05

1.2.3 - 2016-09-20

1.2.2 - 2016-09-20

1.2.1 - 2016-09-20

1.2.0 - 2016-09-20

  • 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

OLD protected_attributes CHANGELOG

1.1.4

  • Avoid double callbacks in Rails >= 4.1.

  • Fixes UnitializedConstant in TooManyRecords.

1.1.3

  • Fix deprecation code.

1.1.2

  • Deprecate config.active_record.whitelist_attributes.

  • Fix integration with associations.

1.1.1

  • Fix strong parameters integration.

  • Remove warnings

  • Fix find_or_* and first_or_* methods integration.

1.1.0

  • Integrate with strong parameters. This allows to migrate a codebase partially from protected_attributes to strong_parameters. Every model that does not use a protection macro (attr_accessible or attr_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.

1.0.9

  • 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

1.0.8 (June 16, 2014)

  • Support Rails 4.0.6+ and 4.1.2+.

    Fixes #35

1.0.7 (March 12, 2014)

  • Fix STI support on Active Record <= 4.0.3.

1.0.6 (March 10, 2014)

  • Support to Rails 4.1

  • Fix CollectionProxy#new method.

    Fixes #21

1.0.5 (November 1, 2013)

1.0.4 (October 18, 2013)

1.0.3 (June 29, 2013)

  • Fix "uninitialized constant ActiveRecord::MassAssignmentSecurity::NestedAttributes::ClassMethods::REJECT_ALL_BLANK_PROC" error when using :all_blank option.

    Fixes #8

  • Fix NoMethodError exception when calling raise_nested_attributes_record_not_found.

1.0.2 (June 25, 2013)

  • Sync #initialize override to latest rails implementation

    Fixes #14

1.0.1 (April 6, 2013)

  • Fix "uninitialized constant ActiveRecord::SchemaMigration" error when checking pending migrations.

    Fixes rails/rails#10109

1.0.0 (January 22, 2013)

  • First public version