email_format_validator 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "email_format_validator"
6
- s.version = "1.0.2"
6
+ s.version = "1.0.3"
7
7
  s.authors = ["Axel Vergult"]
8
8
  s.email = ["axel.vergult@gmail.com"]
9
9
  s.homepage = "https://github.com/episko/email_format_validator"
@@ -26,7 +26,7 @@ class EmailFormatValidator < ActiveModel::EachValidator
26
26
  record.errors.add(
27
27
  attribute,
28
28
  options[:message] || I18n.t(:improperly_formatted,
29
- :scope => "activerecord.errors.models.#{record.class.name.underscore}.attributes.#{attribute}",
29
+ :scope => "#{record.class.i18n_scope}.errors.models.#{record.class.model_name.i18n_key}.attributes.#{attribute}",
30
30
  :default => "is improperly formatted")
31
31
  )
32
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_format_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
16
- requirement: &70319058845060 !ruby/object:Gem::Requirement
16
+ requirement: &70145218413060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70319058845060
24
+ version_requirements: *70145218413060
25
25
  description: A Rails 3 email format validator with RFC 822 compliant option
26
26
  email:
27
27
  - axel.vergult@gmail.com