pluginaweek/validates_as_email_address — pull request #2 by chulkilee (2012-09-04 23:08:03+00:00)
Title: Add translation for ActiveModel::Validations

I'm using non-persistent model with ActiveModel::Validations. Since `validates_as_email_address` contains translation string only for *ActiveRecord*, using the validation method with ActiveModel will have a problem of translation missing error.

```ruby
class Foo
include ActiveModel::Validations
extend ValidatesAsEmailAddress

attr_accessor :email
validates_as_email_address :email
end

foo = Foo.new
foo.valid?
foo.errors[:email]
# contains "translation missing: en.activemodel.errors.models.foo.attributes.email.invalid_email"
```

So I added a translation string for ActiveModel.