Skip to content
Commits on Aug 21, 2012
  1. @beerlington

    Fixes an issue with select_options on nil/blank objects

    beerlington committed
    This was a regression from 2.x where the ActiveRecord object was setting
    enum options on itself. Because these options were no longer available,
    there was no way to determine the associated enum if the value was nil
    or blank. This introduces a sort of null object that is just a subclass
    of the base enum that behaves like a nil or blank object.
Commits on Aug 12, 2012
  1. @beerlington

    Allow strings and symbols when testing for equality

    beerlington committed
    Priority::Low.new == :low  # => true
    Priority::Low.new == 'low' # => true
Commits on Aug 11, 2012
  1. @beerlington

    Updating README and CHANGELOG

    beerlington committed
    [ci-skip]
Commits on Jul 20, 2012
  1. @beerlington

    Merge branch 'master' into v3

    beerlington committed
    Conflicts:
    	lib/classy_enum/attributes.rb
  2. @beerlington
  3. @beerlington

    Removing :suffix option from classy_enum_attr

    beerlington committed
    This was a temporary hack to get around a bug in ActiveRecord uniqueness
    validations.
  4. @beerlington

    Merge branch 'master' into v3

    beerlington committed
    Conflicts:
    	CHANGELOG.md
    	lib/classy_enum/instance_methods.rb
    	lib/classy_enum/version.rb
  5. @beerlington

    Deprecating ClassyEnum::Base#name

    beerlington committed
    Method name is too ambiguous and says nothing about what it actually did
Commits on Jul 19, 2012
  1. @beerlington
Commits on Jul 15, 2012
  1. @beerlington

    Merge branch 'master' into v3

    beerlington committed
    Conflicts:
    	CHANGELOG.md
    	lib/classy_enum/class_methods.rb
    	lib/classy_enum/version.rb
  2. @beerlington

    Deprecating non-namespaced class names (v2.2.0)

    beerlington committed
    Non-namespaced class names will be unsupported in 3.0
  3. @beerlington
Commits on Jul 13, 2012
  1. @beerlington

    Removing ClassyEnum::Base.find()

    beerlington committed
    This alias to build() doesn't make sense anymore now that the enum
    members are not pre-defined and stored in an array.
  2. @beerlington

    Updating changelog for 3.0.0

    beerlington committed
  3. @beerlington
Commits on Apr 24, 2012
  1. @beerlington

    Fixing issue with validates_uniqueness_of

    beerlington committed
    Addresses issue #8 without relying on :suffix option
Commits on Apr 22, 2012
  1. @beerlington

    Removing hacky code Rails 3.0 code

    beerlington committed
    There is a known issue with Rails 3.x and above when using
    validates_uniqueness_of and an enum scope. This issue was patched when
    providing support for 3.0 but then broke again in 3.1 and 3.2. It
    doesn't make sense to have a hack that only works in an older version of
    Rails.
  2. @beerlington
  3. @beerlington
Commits on Dec 5, 2011
  1. @beerlington

    changelog consistency

    beerlington committed
  2. @beerlington

    Adding changelog

    beerlington committed
Something went wrong with that request. Please try again.