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.
- data/lib/phony_rails.rb +1 -1
- data/lib/phony_rails/version.rb +1 -1
- metadata +1 -1
data/lib/phony_rails.rb
CHANGED
@@ -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
|
data/lib/phony_rails/version.rb
CHANGED