README.md in unidom-standard-1.3.5 vs README.md in unidom-standard-1.3.6
- old
+ new
@@ -1,8 +1,10 @@
# Unidom Standard 标准领域模型引擎
+[![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/unidom-standard/frames)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
+
[![Gem Version](https://badge.fury.io/rb/unidom-standard.svg)](https://badge.fury.io/rb/unidom-standard)
[![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/unidom-standard.svg)](https://gemnasium.com/github.com/topbitdu/unidom-standard)
Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Standard domain model engine includes the Standard and Standard Association models.
Unidom (统一领域对象模型)是一系列的领域模型引擎。标准领域模型引擎包括标准和标准关联的模型。
@@ -55,18 +57,34 @@
include Unidom::Standard::Concerns::AsTargetStandard
```
### As Source Standard concern
-The As Source Standard concern do the following tasks for the includer automatically:
-1. Define the has_many :target_associatings macro as: ``has_many :target_associatings, class_name: 'Unidom::Standard::StandardAssociating', foreign_key: :source_id``
-2. Define the has_many :target_standards macro as: ``has_many :target_standards, through: :target_associatings, source: :target``
-3. Define the #associate! method as: ``associate!(target, due_to: 'REVS', at: Time.now)``
+The As Source Standard concern do the following tasks for the includer automatically:
+1. Define the has_many :target_associatings macro as: ``has_many :target_associatings, class_name: 'Unidom::Standard::StandardAssociating', foreign_key: :source_id``
+2. Define the has_many :target_standards macro as: ``has_many :target_standards, through: :target_associatings, source: :target``
+3. Define the #associate! method as: ``associate!(target, due_to: 'REVS', at: Time.now)``
4. Define the #associate? method as: ``associate?(target, due_to: 'REVS', at: Time.now)``
### As Target Standard concern
-The As Target Standard concern do the following tasks for the includer automatically:
-1. Define the has_many :source_associatings macro as: ``has_many :source_associatings, class_name: 'Unidom::Standard::StandardAssociating', foreign_key: :target_id``
-2. Define the has_many :source_standards macro as: ``has_many :source_standards, through: :source_associatings, source: :source``
-3. Define the #is_associated! method as: ``is_associated!(source, due_to: 'REVS', at: Time.now)``
+The As Target Standard concern do the following tasks for the includer automatically:
+1. Define the has_many :source_associatings macro as: ``has_many :source_associatings, class_name: 'Unidom::Standard::StandardAssociating', foreign_key: :target_id``
+2. Define the has_many :source_standards macro as: ``has_many :source_standards, through: :source_associatings, source: :source``
+3. Define the #is_associated! method as: ``is_associated!(source, due_to: 'REVS', at: Time.now)``
4. Define the #is_associated? method as: ``is_associated?(source, due_to: 'REVS', at: Time.now)``
+
+
+
+## Disable the Model & Migration
+
+If you only need the app components other than models, the migrations should be neglected, and the models should not be loaded.
+```ruby
+# config/initializers/unidom.rb
+Unidom::Common.configure do |options|
+
+ options[:neglected_namespaces] = %w{
+ Unidom::Standard
+ }
+
+end
+```