mix-rails-addresses 0.26.1 → 0.26.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/address.rb +1 -1
- data/lib/mix-rails-addresses/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c2385c771369cf8e3a6953f1890c3795183f89c
|
4
|
+
data.tar.gz: 576a92c85feaffe9d8546dfc04cc7391089f362a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53742dae3940e5aaaddc698456156865f69eaedea09b63ef5ed8a0a7be2e4d9574a91cc3d3f8077d5ed01fe4b81a4ca13dcfcd4432b15504846c31a3aea6eb55
|
7
|
+
data.tar.gz: 76b8a0a65b20e3ddaa9828ed889f3b0830c64f0b35e8b9188f0230e5553f82712e70fcceb39b42e2b5eb5171d19bb1c3c44eadd9bc552b07775ca060b25c72dc
|
data/app/models/address.rb
CHANGED
@@ -2,7 +2,7 @@ class Address < ActiveRecord::Base
|
|
2
2
|
belongs_to :city
|
3
3
|
delegate :state, :to => :city, :allow_nil => true
|
4
4
|
belongs_to :addressable, polymorphic: true
|
5
|
-
attr_accessible :address, :complement, :description, :district, :number, :zipcode, :latitude, :longitude
|
5
|
+
attr_accessible :address, :complement, :description, :district, :number, :zipcode, :latitude, :longitude, :city_id
|
6
6
|
|
7
7
|
|
8
8
|
def to_s
|