Generate id method on Ruby 1.8.

Because object_id and id went through some flux, it's best to tell 1.8
specifically what we mean.

Closes #127.
This commit is contained in:
Steve Klabnik
2013-03-19 14:53:08 -07:00
parent 145b6d499d
commit c129ae2016
4 changed files with 32 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
# unreleased
* On Ruby 1.8, we now generate an `id` method that properly serializes `id`
columns. See issue #127 for more.
* Add an alias for `scope` method to be the name of the context. By default
this is `current_user`. The name is automatically set when using
`serialization_scope` in the controller.