-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
23 lines (14 loc) · 651 Bytes
/
Copy pathREADME
File metadata and controls
23 lines (14 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Address
=======
This is a simple address model that is useful for using in all applications that
need a good geo reference. This class strives to be GIS, but is a work in progress.
The GIS functions (acts_as_geom) will only work with PostGIS and Postgresql.
Example
=======
I use this in many of my models as an addressable polymorphic association as such:
has_one :address, :as => :addressable,
:class_name => 'Address', :dependent => :destroy
or
has_many :addresses, :as => :addressable,
:class_name => 'Address', :dependent => :destroy
Copyright (c) 2010 HounddogProductions, released under the MIT license