Sha256: e7c16e94438ea78830abbfe0f1582d30651fe7b781e21816c93a61dd74aea076
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
# Unidom Category 类别领域模型引擎 [](http://opensource.org/licenses/MIT) [](https://badge.fury.io/rb/unidom-category) Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Category domain model engine includes Category and its relative models. 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-category' ``` ## Run the Database Migration ```shell rake db:migrate ``` The migration versions start with 200003. ## Call the Model ```ruby Unidom::Category::Category.coded_as('x1').scheme_is(scheme).valid_at.alive.first Unidom::Category::Categorizing.categorize! product, into: category, at: Time.now Unidom::Category::CategoryRollup.roll_up! child_category, into: parent_category, at: Time.now ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-category-1.0 | README.md |