phony_rails 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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