Permalink
Commits on Oct 4, 2014
  1. Active Record models must explicitly include ClassyEnum

    From my experience, it's rare to have more than a few models use
    ClassyEnum in a project. By requiring all models to explicitly include
    (or extend) ClassyEnum::ActiveRecord, it keeps other models clean and
    makes it more obvious where classy_enum_attr is coming from.
    beerlington committed Oct 4, 2014
  2. Fixes issues and warnings with i18n tests

    Since Rails 3.2.16 the enforce_available_locales setting should be set
    to true. This mimics that behavior.
    beerlington committed Oct 4, 2014
Commits on Oct 1, 2014
Commits on Jun 29, 2014
  1. Merge branch 'rails-4.1'

    beerlington committed Jun 29, 2014
Commits on Jun 15, 2014
Commits on May 22, 2014
  1. Adds example to Changelog

    beerlington committed May 22, 2014
  2. Merge pull request #38 from jordpo/master

    Add class_name as an option to #classy_enum_attr
    beerlington committed May 22, 2014
Commits on May 15, 2014
Commits on May 14, 2014
  1. Bump version

    beerlington committed May 14, 2014
  2. Tweaking logic a bit with default values

    There was a case where a value might be set to a nil value but allow
    blank values, and it was not setting the attribute correctly.
    beerlington committed May 14, 2014
  3. Remove degugger dependency

    It doesn't work with all versions of ruby so I'd rather just let whoever
    is developing debug whatever way they want.
    beerlington committed May 14, 2014
  4. Removes tests for Ruby 1.8.7

    The tests segfault on travis, but pass locally. Not worth the hassle.
    beerlington committed May 14, 2014
Commits on May 4, 2014
  1. Better default value behavior

    When a default value is specified, it is now setting that value on
    object initialization instead of when reading it. This allows the
    default value to be persisted to the database and queried.
    beerlington committed Jul 19, 2013
Commits on Apr 5, 2014
Commits on Feb 13, 2014
  1. Bump version to 3.4.0

    beerlington committed Feb 13, 2014
Commits on Jan 9, 2014
  1. Merge pull request #31 from indrekj/master

    Swap rails dependency with activerecord
    beerlington committed Jan 9, 2014
Commits on Jan 2, 2014
  1. Happy new year!

    beerlington committed Jan 2, 2014
  2. new year

    beerlington committed Jan 2, 2014
Commits on Nov 30, 2013
Commits on Nov 26, 2013
  1. Declaring enum name is not really a special case

    It is common to have multiple enums in an application that do not
    share the same name as the field they are representing. There was some
    confusion caused by the README because it called this a "special case",
    but it's actually quite common. Hopefully this clears that up a bit.
    
    Closes #30
    beerlington committed Nov 26, 2013
Commits on Nov 24, 2013
Commits on Nov 18, 2013
  1. Bump versions

    beerlington committed Nov 18, 2013
  2. Don't clobber test directory with rails destroy

    This was previously fixed for rspec but not test unit
    beerlington committed Nov 18, 2013
  3. Fixes Arel visitor methods

    Arel 4.0.1 made an internal change that broke the hacks for getting
    scopes to work with enum attributes. This makes the hack backwards
    compatible with Arel 4.0.0.
    beerlington committed Nov 18, 2013