morse_contactable 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/addressable.rb +2 -1
- data/lib/morse_contactable/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: 5233c88af73fbbbcf5162508545330c348d0c1de
|
4
|
+
data.tar.gz: 4680dbb3e0a74de1849bc5651a0da49ffde907a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1046c22b565f852eeae8a8288e748522adff49ee5c674ed7139d663f2f3f3d95cf07df6f86abe2f9d7e5d3393761d7ff9f8530479208c2f294612f796d373e65
|
7
|
+
data.tar.gz: 79ba221ea3d3abeaa8a54ff220c60d156b1725475dba1f30730cc264f25436cb67bf874801bb732a74c99e37c0fc16cb87dc693025016001aed32e447abe7526
|
data/lib/addressable.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Addressable
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
include FieldsValidator
|
4
|
+
REQUIRED_DATABASE_FIELDS = [:title, :address1, :address2, :address3, :town, :county, :country, :postcode]
|
4
5
|
|
5
6
|
included do
|
6
7
|
validate_required_attributes
|
@@ -14,7 +15,7 @@ module Addressable
|
|
14
15
|
|
15
16
|
def required_database_fields
|
16
17
|
result=defined?(super) ? super : []
|
17
|
-
result+=
|
18
|
+
result+= REQUIRED_DATABASE_FIELDS
|
18
19
|
end
|
19
20
|
|
20
21
|
def required_addressable_attributes
|