addresslogic 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/lib/addresslogic.rb +1 -1
- data/lib/addresslogic/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 1.1.2
|
2
|
+
|
3
|
+
* Update defaults to use changes in 1.1.1
|
4
|
+
|
1
5
|
== 1.1.1
|
2
6
|
|
3
7
|
* Clean up code to use recursion and allow fields to be specified like: [:street1, :street2, [:city, [:state, :zip]], :country]. Which is the standard american way of displaying address. Which looks like: [street1, street2, "#{city}, #{state} #{zip}", country]
|
data/lib/addresslogic.rb
CHANGED
@@ -23,7 +23,7 @@ module Addresslogic
|
|
23
23
|
attr_accessor :address_parts_fields
|
24
24
|
|
25
25
|
def apply_addresslogic(args = {})
|
26
|
-
self.address_parts_fields = args[:fields] || [:street1, :street2, :city, [:state, :zip], :country]
|
26
|
+
self.address_parts_fields = args[:fields] || [:street1, :street2, [:city, [:state, :zip]], :country]
|
27
27
|
include Addresslogic::InstanceMethods
|
28
28
|
end
|
29
29
|
end
|
data/lib/addresslogic/version.rb
CHANGED