Skip to content

Commit

Permalink
Adds example to Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
beerlington committed May 22, 2014
1 parent 16e585f commit d7262f2
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@

* Fixes long standing issue with default values not being persisted to
the database. See issue #37.
* Updates classy_enum_attr method to accept class_name as an argument
* Updates `classy_enum_attr` method to accept class_name as an argument as
an alias for `enum`. This is to bring the API closer to how
ActiveRecord overrides class names on associations.

```ruby
class Alarm < ActiveRecord::Base
classy_enum_attr :priority, enum: 'AlarmPriority'
end
```

is now equivalent to:

```ruby
class Alarm < ActiveRecord::Base
classy_enum_attr :priority, class_name: 'AlarmPriority'
end
```


## 3.4.0

Expand Down

0 comments on commit d7262f2

Please sign in to comment.