Sha256: d540c70821dde6ba1661ad65b2688eb66d8738cea13fa3e19897ad47d91a2da7
Contents?: true
Size: 1.98 KB
Versions: 3
Compression:
Stored size: 1.98 KB
Contents
# Unidom Requirement 需求领域模型引擎 [](http://www.rubydoc.info/gems/unidom-requirement/frames) [](http://opensource.org/licenses/MIT) [](https://badge.fury.io/rb/unidom-requirement) [](https://gemnasium.com/github.com/topbitdu/unidom-requirement) Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Requirement domain model engine includes the Requirement and the Order Requirement Commitment model. Unidom (统一领域对象模型)是一系列的领域模型引擎。需求领域模型引擎包括需求和订单需求委托的模型。 ## Recent Update Check out the [Road Map](ROADMAP.md) to find out what's the next. Check out the [Change Log](CHANGELOG.md) to find out what's new. ## Usage in Gemfile ```ruby gem 'unidom-requirement' ``` ## Run the Database Migration ```shell rake db:migrate ``` The migration versions start with 200211. ## Call the Model ```ruby requirement = Unidom::Requirement::Requirement.create! superior_requirement: nil, requirer: person, facility: room, reason: reason, estimated_budget: 100, quantity: 10, required_on: Date.current # The #facility attribute could be nil. ``` ## 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::Requirement } end ``` ## RSpec examples ```ruby # spec/models/unidom_spec.rb require 'unidom/requirement/models_rspec' # spec/types/unidom_spec.rb require 'unidom/requirement/types_rspec' # spec/validators/unidom_spec.rb require 'unidom/requirement/validators_rspec' ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
unidom-requirement-1.0 | README.md |
unidom-requirement-0.3.1 | README.md |
unidom-requirement-0.3 | README.md |