Backport ActiveModel::Model for Rails 3 compatibility