Skip to content

Latest commit

 

History

History
159 lines (110 loc) · 11.5 KB

CHANGELOG.md

File metadata and controls

159 lines (110 loc) · 11.5 KB

Globalize Changelog

6.3.0 (2023-10-22)

6.2.1 (2022-05-24)

  • Changed serialize method in Rails 6.1.0+ #798 by Alex

6.2.0 (2022-05-24)

6.1.0 (2022-02-25)

6.0.1 (2021-06-23)

6.0.0 (2021-01-11)

5.3.1 (2021-01-11)

5.3.0 (2019-05-14)

5.2.0 (2018-11-02)

5.1.0 (2018-01-15)

5.0.1 (2015-02-15)

  • Don't touch table when model is loaded. #412
  • Remove handling for locale attribute on parent model #411 by awesome Tekin Suleyman.

5.0.0 (2015-02-03)

  • Added support for Rails 4.2, but removed support for every previous version of Rails. This is a backward incompatible change, thus the version is now 5.0.0. (thanks Nico Ritsche and others). #396.

4.0.3 (2014-11-24)

  • Fixes a problem where after dup the dup'd model and the original model shared a translation instance, which means that if you mutate a translated field on the dup and save it, the original becomes a clone of the dup. #352.
  • Deprecated with_required_attributes, required_attributes, and required_translated_attributes. with_translations no longer invokes with_required_attributes. #355.
  • Removed all usages of Thread.local. #374. (thanks Hubert Lee).
  • Added available_locales method. This duplicates translated_locales method, but it doesn't use a separate DISTINCT query. #339. (thanks Andrew Volozhanin).

4.0.2 (2014-06-29)

  • Use reflections class method so ensure_foreign_key_for works in AR >= 4.1.2, fixes #353.
  • Set touch:true on belongs_to for the globalized model, fixes #330 (thanks shlensky).
  • Accept optional arguments passed to where_values_hash, fixes #354 (thanks felixbuenemann).

4.0.1 (2014-03-29)

  • Fix bug where with_translations only works if called after where in relation chain, fixes #343.
  • Use preload and joins instead of includes in with_translations, fixes #329 (thanks Andrew Volozhanin).
  • Update database_cleaner dependency to 1.2.0.
  • Support use of first/take/last with limit on queries with translated attributes, fixes #322 (thanks prusswan).
  • Ensure that options are always extracted from attr_names in Globalize::ActiveRecord::ActMacro#translates, PR #319 (thanks Marek).

4.0.0 (2014-01-04)

4.0.0.alpha.5 (2014-01-04)

  • Fix issue where globalize breaks has_many through when model called with where (thanks Paul McMahon).
  • Modify dup so that translations are copied, and remove custom clone code to conform to Rails/AR semantics (thanks Paul McMahon).

4.0.0.alpha.4 (2013-12-30)

  • Add this changelog.
  • Add contributing guidelines.
  • Group options into more structured methods in act_macro.rb.
  • Remove dynamic finder code from globalize3, no longer used in AR4.
  • Get hash of translated attributes by calling attribute on model, not translation.
  • Define translation readers/writers in separate methods.
  • Test against AR 4.1 and AR 4.0.
  • Switch to minitest-reporters for colouring output from minitest.
  • Remove find_or_instantiator_by_attributes which is no longer used in AR4.
  • Set I18n.available_locales in tests to avoid deprecation message.
  • Reorganize specs into describe blocks to clarify object of specs.

4.0.0.alpha.3 (2013-12-18)

  • Move ActiveRecord::Relation#where_values_hash patch into globalize relation class to avoid monkeypatching.
  • Add Code Climate Score (thanks BrandonMathis).
  • Query using Globalize.fallbacks rather than locale only when fetching a record (thanks @huoxito).
  • Use a module (QueryMethods) rather than a class for overriding functionality of ActiveRecord::Relation.
  • Use ActiveRecord::Relation#extending! to extend ActiveRecord::Base#relation with QueryMethods, works with associations as well.

4.0.0.alpha.2 (2013-10-24)

  • Add license to gemspec.
  • Update references to ActiveRecord 3 -> ActiveRecord.
  • Replace references to globalize3 with globalize and remove references to ActiveRecord 3.x.
  • Document 3-0-stable branch in readme.
  • Convert test syntax to MiniTest::Spec.
  • Extract easy accessors functionality, moved to new globalize-accessors gem.
  • Check that first is not nil before reloading translations, fixes #282.
  • Duplicate arguments in query finders before modifying them, fixes #284.
  • Add test for find_or_create_by with translated attribute.

4.0.0.alpha.1 (2013-10-09)

  • Initial release of Rails 4-compatible gem.

3.1.0 (2014-01-25)

  • Backport scope support on uniqueness validation from 4.0, drop support for ActiveRecord < 3.1, fixes #324.

3.0.5 (2015-04-24)

  • Now working properly with the squeel library. (thanks Toru Mori). See #437

3.0.4 (2014-01-08)

3.0.3 (2013-12-26)

  • Ensure that foreign key is always set when saving translations (thanks Andrew Feng).
  • Patch I18n to add back I18n.interpolate after it was removed (accidentally?) in v0.5.2 (see svenfuchs/i18n#232. Hopefully this patch will be temporary.
  • Explicitly test compatibility with FriendlyId to avoid issues like #306.
  • Only override ActiveRecord::Base#relation to patch where_values_hash if using AR >= 3.2.1.

3.0.2 (2013-12-07)

3.0.1 (2013-11-07)

  • Move ActiveRecord::Relation#where_values_hash patch to Globalize-specific Relation class that inherits from ActiveRecord::Relation to fix compatibility issue with Squeel (#288).
  • Use FriendlyId pattern for overriding ActiveRecord::Base#relation to avoid conflict.
  • Remove :null => false condition on reference to parent model in translation table migration, partial fix for refinery/refinerycms#2450.

3.0.0 (2013-10-24)

  • Initial release with new version numbering.