phony_rails 0.0.10 → 0.0.11
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 +2 -2
data/lib/phony_rails.rb
CHANGED
@@ -89,8 +89,8 @@ module PhonyRails
|
|
89
89
|
options = attributes.last.is_a?(Hash) ? attributes.pop : {}
|
90
90
|
options.assert_valid_keys :country_code, :default_country_code
|
91
91
|
attributes.each do |attribute|
|
92
|
-
raise ArgumentError, "Attribute #{attribute} was not found on #{self.name} (PhonyRails)" unless self.attribute_method?(attribute)
|
93
92
|
define_method :"normalized_#{attribute}" do
|
93
|
+
raise ArgumentError, "Attribute #{attribute} was not found on #{self.name} (PhonyRails)" unless self.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
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.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: phony
|