All Versions
33
Latest Version
Avg Release Cycle
145 days
Latest Release
882 days ago

Changelog History
Page 2

  • v2.0.0 Changes

    August 10, 2016

    ✨ enhancements

    • ⬇️ Drop support for Ruby older than 2.2. Support only Ruby 2.2+. (by @nashby)
    • ⬇️ Drop support for Rails 4.0 and 4.1. Support only Rails 4.2 and newer. (by @lest)
    • 👌 Support Rails 5.0. (by @nashby and @lest)
    • 👍 Allow to pass enumerize values to ActiveRecord#update_all (by @DmitryTsepelev and @ianwhite)
      User.update_all(status: :blocked)
    

    🐛 bug fix

    • Rescue MissingAttributeError on attribute writing. (by @embs)
    • 🛠 Fix presence validation for multiple attributes when the list contains a blank string. (by @smoriwaki)
    • Replace deprecated alias_method_chain with Module#prepend. (by @koenpunt and @akm)
    • 👉 Make it compatible with globalize gem. (by @falm)
    • 0️⃣ Prevent method getter from being called when no default_value is being set. (by @arjan0307)
  • v1.1.1 Changes

    January 25, 2016

    🐛 bug fix

    • 🛠 Fix exception when using predicate methods and enumerized values have dash in it. (by @nashby)
  • v1.1.0 Changes

    November 15, 2015

    ✨ enhancements

    🐛 bug fix

  • v1.0.0 Changes

    August 02, 2015

    ✨ enhancements

    • Add texts method for getting an array of text values of the enumerized field with multiple type. (by @huynhquancam)
    • Drop Rails 3.2 support. (by @nashby)

    🐛 bug fix

    • Fix conflicts when Active Record and Mongoid are used at the same time. (by @matsu911)
  • v0.11.0 Changes

    March 29, 2015

    ✨ enhancements

    • Add ability to set default value for enumerized field with multiple type. (by @nashby)
    • Support Rails 4.2. (by @lest)

    🐛 bug fix

    • Use Mongoid's :in method for generated scopes, fix chained scopes. (by @nashby)
    • Use after_initialize callback to set default value in Mongoid documents. (by @nashby)
  • v0.10.1 Changes

    March 04, 2015

    🐛 bug fix

    • Use method_missing instead of defining singleton class methods to allow Marshal serialization (by @lest)
  • v0.10.0 Changes

    February 17, 2015

    ✨ enhancements

    • Add scopes support to mongoid documents (by @nashby)
    • Use underscore.humanize in #text to make use of Inflector acronyms (by @mintuhouse)
    • Raise an exception when :scope option is used together with :multiple option (by @maurogeorge)
    • Use alias_method_chain instead of overriding Class#inherited (by @yuroyoro)
    • Shortcut methods to retrieve enumerize values (by @CyborgMaster)
    • Extend equality operator to support comparing with symbols and custom values (e.g. integers) (by @CyborgMaster)
  • v0.9.0 Changes

    December 11, 2014

    ✨ enhancements

    • Add :value_class option (by @lest)
    • Use 'defaults' scope in the localization file for the attributes that used across several models. This will help to avoid conflicting keys with model names and attribute names. Example:
        en:
          enumerize:
            defaults:
              sex:
                male: Male
                female: Female
    

    You still can use the old solution without "default" scope:

        en:
          enumerize:
            sex:
              male: Male
              female: Female
    

    (by @nashby)

    🐛 bug fix

    • Store values for validation using string keys (by @nagyt234)
    • Store custom values for multiple attributes (by @lest)
    • Support validations after using AR#becomes (by @lest)
    • Do not try to set attribute for not selected attributes (by @dany1468)
  • v0.8.0 Changes

    March 04, 2014

    ✨ enhancements

    • Integration with SimpleForm's input_field (by @nashby)
    • Support multiple attributes in Active Record #becomes method (by @lest)
    • Add ability to specify localization scope with i18n_scope option (by @dreamfall)

    🐛 bug fix

    • Fix Rails Admin integration when custom values are used (by @brenes)
    • Fix RSpec integration using enumerize with Spring (by @winston)
    • Return proper RSpec failure message for enumerized attribute with default value (by @nashby)
    • Return proper RSpec description for enumerized attribute without default value (by @andreygerasimchuk)
    • Do not try to set default value for not selected attributes (by @nashby)
    • Fix uniqueness validation with Active Record (by @lest)
    • Fix loading of attributes with multiple: true in mongoid (by glebtv)
    • Serialize value as scalar type (by @ka8725)
  • v0.7.0 Changes

    August 21, 2013

    ✨ enhancements

    • Give priority to model specific translation definition. See example here (by @labocho)
    • Allow lambda in default value (by @adie)
    • Add predicate methods to the multiple attributes (by @nashby)
    • Add RSpec matcher (by @nashby)
    • Add *_value method that returns actual value of the enumerized attribute (useful for attributes with custom values) (by @tkyowa)

    🐛 bug fix

    • Make validation work when write_attribute is using for setting enumerized values (by @nashby)
    • Validates enumerized values when enumeration is included via module (by @nashby) and (by @lest)