# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [2.4.0] - 2019-01-10 ### Added - Support `has_one` and `has_one - through` ### Changed - Lint code via Rubocop - Refactor code to improve readability - Use HTTPS in the gemspec website URL ## [2.3.2] - 2018-04-11 ### Added - Support for Ruby 2.4 and 2.5 - Support for Rails 5.1 and 5.2 - CHANGELOG.md ## [2.3.1] - 2017-10-03 ### Added - Documentation on when the optional block is invoked, which is before attributes are excluded ### Fixed - Conditional includes for nested associations ## [2.3.0] - 2017-06-14 ### Added - Support for skipping missing associations ### Fixed - Multikey hashes in include arrays ## [2.2.2] - 2016-10-10 ### Added - Documentation on cloning associated Carrierwave files ### Changed - Use `inverse_of` when defined for finding the reverse association - Cache bundler in Travis - Use index operator for setting column defaults - Explicitly require activerecord to resolve a sidekiq issue - Bump rails 5.0 appraisal ## [2.2.1] - 2016-05-27 ### Fixed - Properly set column defaults for attributes - Rails 5.0 compatibility ## [2.2.0] - 2016-01-11 ### Added - Support for conditional cloning when using array inclusions ### Changed - Bump rails 4.2 appraisal to 4.2.3 ## [2.1.0] - 2015-03-10 ### Added - Support for conditional cloning ### Changed - Check the dictionary before cloning has_many through or habtm associations - Refactor methods to refer to `dup` instead of `clone` ## [2.0.2] - 2014-12-17 ### Fixed - Broken activerecord dependency in gemspec ## [2.0.1] - 2014-12-17 ### Fixed - Rails 4.2.0.rc3 compatibility ## [2.0.0] - 2014-06-26 ### Removed - Override of `dup` - References to `dup` ### Fixed - Open-ended dependency warning ## [1.7.0] - 2014-06-25 ### Deprecated - Deprecated `dup` in favor of `deep_clone` ## [1.6.1] - 2014-04-16 ### Changed - Switched test suite to minitest - Update travis.yml with rails 4.1 ### Fixed - Rails 4.1 compatibility ## [1.6.0] - 2013-11-02 ### Added - `:only` option for whitelisting attributes - MIT license ## [1.5.5] - 2013-08-28 ### Fixed - Fix activerecord gem dependency ## [1.5.4] - 2013-08-12 ### Removed - Rails 3.0 support, as it was broken anyway ### Changed - Update travis.yml with rails 4.0 ### Fixed - Appraisals should load the correct major version of rails - Exclude unsupported builds in Travis ## [1.5.3] - 2013-06-18 ### Fixed - Fix `initialize_dup` error ## [1.5.2] - 2013-06-10 ### Fixed - Properly support has_many through associations - Fix reverse association lookup for self-referential models - Travis.ci status image ## [1.5.1] - 2013-03-06 ### Fixed - Ruby 2.0 compatibility ## [1.5.0] - 2013-02-27 ### Added - `:validate` option to disable validations when saving a cloned object ### Fixed - Depend on activerecord instead of rails ## [1.4.1] - 2012-07-23 ### Fixed - Don't save HABTM associations on clone ## [1.4.0] - 2012-04-02 ### Added - Possibility to add a optional block ### Fixed - Ruby 1.8.7 compatibility for rails 3.1 ## [1.3.1] - 2012-01-26 ### Fixed - Rails 3.2 compatibility ## [1.2.4] - 2011-06-15 ### Changed - Raise an exception when the reverse association is missing ### Fixed - Reset column value when cloning associations ## [1.2.3] - 2011-02-27 ### Changed - Find and set the reverse association when cloning associations ## [1.2.2] - 2011-02-21 ### Fixed - Use association reflection for fetching the primary key name ## [1.2.1] - 2011-02-07 ### Fixed - Cloning for polymorphic associations ## [1.2.0] - 2010-10-20 ### Added - `:except` option for excluding attributes ### Fixed - Set foreign keys properly ## 1.0.0 - 2010-10-18 ### Fixed - Convert existing code to a gem [Unreleased]: https://github.com/moiristo/deep_cloneable/compare/v2.4.0...HEAD [2.4.0]: https://github.com/moiristo/deep_cloneable/compare/v2.3.2...v2.4.0 [2.3.2]: https://github.com/moiristo/deep_cloneable/compare/v2.3.1...v2.3.2 [2.3.1]: https://github.com/moiristo/deep_cloneable/compare/v2.3.0...v2.3.1 [2.3.0]: https://github.com/moiristo/deep_cloneable/compare/v2.2.2...v2.3.0 [2.2.2]: https://github.com/moiristo/deep_cloneable/compare/v2.2.1...v2.2.2 [2.2.1]: https://github.com/moiristo/deep_cloneable/compare/v2.2.0...v2.2.1 [2.2.0]: https://github.com/moiristo/deep_cloneable/compare/v2.1.0...v2.2.0 [2.1.0]: https://github.com/moiristo/deep_cloneable/compare/v2.0.2...v2.1.0 [2.0.2]: https://github.com/moiristo/deep_cloneable/compare/v2.0.1...v2.0.2 [2.0.1]: https://github.com/moiristo/deep_cloneable/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/moiristo/deep_cloneable/compare/v1.7.0...v2.0.0 [1.7.0]: https://github.com/moiristo/deep_cloneable/compare/v1.6.1...v1.7.0 [1.6.1]: https://github.com/moiristo/deep_cloneable/compare/v1.6.0...v1.6.1 [1.6.0]: https://github.com/moiristo/deep_cloneable/compare/v1.5.5...v1.6.0 [1.5.5]: https://github.com/moiristo/deep_cloneable/compare/v1.5.4...v1.5.5 [1.5.4]: https://github.com/moiristo/deep_cloneable/compare/v1.5.3...v1.5.4 [1.5.3]: https://github.com/moiristo/deep_cloneable/compare/v1.5.2...v1.5.3 [1.5.2]: https://github.com/moiristo/deep_cloneable/compare/v1.5.1...v1.5.2 [1.5.1]: https://github.com/moiristo/deep_cloneable/compare/v1.5.0...v1.5.1 [1.5.0]: https://github.com/moiristo/deep_cloneable/compare/v1.4.1...v1.5.0 [1.4.1]: https://github.com/moiristo/deep_cloneable/compare/v1.4.0...v1.4.1 [1.4.0]: https://github.com/moiristo/deep_cloneable/compare/v1.3.1...v1.4.0 [1.3.1]: https://github.com/moiristo/deep_cloneable/compare/v1.2.4...v1.3.1 [1.2.4]: https://github.com/moiristo/deep_cloneable/compare/v1.2.3...v1.2.4 [1.2.3]: https://github.com/moiristo/deep_cloneable/compare/v1.2.2...v1.2.3 [1.2.2]: https://github.com/moiristo/deep_cloneable/compare/v1.2.1...v1.2.2 [1.2.1]: https://github.com/moiristo/deep_cloneable/compare/v1.2.0...v1.2.1 [1.2.0]: https://github.com/moiristo/deep_cloneable/compare/v1.1.0...v1.2.0 [1.1.0]: https://github.com/moiristo/deep_cloneable/compare/v1.0.0...v1.1.0