Skip to content

Commit 3160339

Browse files
author
Joost Hietbrink
committed
Fix.
1 parent aa17c5a commit 3160339

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Gemfile.lock

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
PATH
22
remote: .
33
specs:
4-
phony_rails (0.1.13)
4+
phony_rails (0.2.2)
55
activerecord (>= 3.0)
66
countries (>= 0.8.2)
77
phony (>= 1.7.7)
88

99
GEM
1010
remote: http://rubygems.org/
1111
specs:
12-
activemodel (3.2.12)
13-
activesupport (= 3.2.12)
12+
activemodel (3.2.13)
13+
activesupport (= 3.2.13)
1414
builder (~> 3.0.0)
15-
activerecord (3.2.12)
16-
activemodel (= 3.2.12)
17-
activesupport (= 3.2.12)
15+
activerecord (3.2.13)
16+
activemodel (= 3.2.13)
17+
activesupport (= 3.2.13)
1818
arel (~> 3.0.2)
1919
tzinfo (~> 0.3.29)
20-
activesupport (3.2.12)
21-
i18n (~> 0.6)
20+
activesupport (3.2.13)
21+
i18n (= 0.6.1)
2222
multi_json (~> 1.0)
2323
arel (3.0.2)
2424
builder (3.0.4)
@@ -41,8 +41,8 @@ GEM
4141
rb-fchange (~> 0.0.5)
4242
rb-fsevent (~> 0.9.1)
4343
rb-inotify (~> 0.8.8)
44-
multi_json (1.6.0)
45-
phony (1.8.6)
44+
multi_json (1.7.2)
45+
phony (1.9.0)
4646
rake (10.0.3)
4747
rb-fchange (0.0.5)
4848
ffi
@@ -59,7 +59,7 @@ GEM
5959
rspec-mocks (2.11.1)
6060
sqlite3 (1.3.6)
6161
thor (0.15.4)
62-
tzinfo (0.3.35)
62+
tzinfo (0.3.37)
6363

6464
PLATFORMS
6565
ruby

lib/phony_rails.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def set_phony_normalized_numbers(attributes, options = {})
4949
options[:country_code] ||= self.country_code if self.respond_to?(:country_code)
5050
attributes.each do |attribute|
5151
attribute_name = options[:as] || attribute
52-
raise RuntimeError, "No attribute #{attribute_name} found on #{self.class.name} (PhonyRails)" if not self.attribute_method?(attribute_name)
52+
raise RuntimeError, "No attribute #{attribute_name} found on #{self.class.name} (PhonyRails)" if not self.class.attribute_method?(attribute_name)
5353
write_attribute(attribute_name, PhonyRails.normalize_number(read_attribute(attribute), options))
5454
end
5555
end

lib/phony_rails/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module PhonyRails
2-
VERSION = "0.2.1"
2+
VERSION = "0.2.2"
33
end

0 commit comments

Comments
 (0)