Added support for Rails 4.

As of Rails 4.x, only values that are flagged as changed are persisted during a save. Because of this, values set with default_value_for were passing validators on ActiveRecord models, but not actually being inserted in the underlying database. This pull request resolves that issue so that default_value_for is compatible with Rails 4.x.