README.md in unidom-geo-1.1 vs README.md in unidom-geo-1.2
- old
+ new
@@ -29,10 +29,13 @@
# Locate: associate a shop, an estate, or a facility with a location
location.locate! shop, by: person
# or
Unidom::Geo::Locating.locate! location: location, located: shop
+
+# Determine whether a shop was located to a given location at a given time.
+location.locate? shop, at: Time.now
```
## Include the Concerns:
```ruby
include Unidom::Geo::Concerns::AsLocated
@@ -41,9 +44,10 @@
### As Located concern
The As Located concern do the following tasks for the includer automatically:
1. Define the has_many :locatings macro as: ``has_many :locatings, class_name: 'Unidom::Geo::Locating', as: :located``
2. Define the has_many :locations macro as: ``has_many :locations, through: :locatings, source: :location``
+3. Define the #is_located! method as: ``is_located!(to: nil, by: nil, at: Time.now)``
### As Region concern
The As Region concern do the following tasks for the includer automatically:
1. Define the has_many :locations macro as: ``has_many :locations, class_name: 'Unidom::Geo::Location'``
2. Define the has_many :locatings macro as: ``has_many :locatings, through: :locations, source: :locatings``