README.md in unidom-geo-china-0.4 vs README.md in unidom-geo-china-0.4.1
- old
+ new
@@ -1,9 +1,10 @@
# Unidom Geo China 中国地理领域模型引擎
[](http://opensource.org/licenses/MIT)
[](https://badge.fury.io/rb/unidom-geo-china)
+[](https://gemnasium.com/github.com/topbitdu/unidom-geo-china)
Unidom (UNIfied Domain Object Model) is a series of domain model engines. The China Geo domain model engine includes the Region model and its migration.
Unidom (统一领域对象模型)是一系列的领域模型引擎。中国地理领域模型引擎包括中国大陆的行政区划模型及其数据迁移脚本。
@@ -63,17 +64,20 @@
- ```region.sub_regions``` returns a scope for the sub regions of the ```region```. 返回找到 ```region``` 直接下级行政区划的查询 scope。
## Include the Concerns
+
```ruby
include Unidom::Geo::China::Concerns::AsInferiorRegion
include Unidom::Geo::China::Concerns::AsSuperiorRegion
```
### As Inferior Region
+
The As Inferior Region do the following tasks for the includer automatically:
1. Define the #super_regions method as: ``super_regions``
### As Superior Region
+
The As Superior Region do the following tasks for the includer automatically:
1. Define the #sub_regions method as: ``sub_regions``