phony_rails 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,7 +90,7 @@ module PhonyRails
90
90
  options.assert_valid_keys :country_code, :default_country_code
91
91
  attributes.each do |attribute|
92
92
  define_method :"normalized_#{attribute}" do
93
- raise ArgumentError, "Attribute #{attribute} was not found on #{self.name} (PhonyRails)" unless self.attribute_method?(attribute)
93
+ raise ArgumentError, "Attribute #{attribute} was not found on #{self.name} (PhonyRails)" unless self.class.attribute_method?(attribute)
94
94
  options[:country_code] ||= self.country_code if self.respond_to?(:country_code)
95
95
  PhonyRails.normalize_number(self[attribute], options)
96
96
  end
@@ -1,3 +1,3 @@
1
1
  module PhonyRails
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: