Sha256: 1498d26d57574b55cb1d39cd4095fe7e27b3dab6a491323a44bedc6dd5506594
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
# COMMANDOES-ACTIVEMODEL A plugin for the [commandos](http://github.com/mdelkins/commandos) library. This plugin adds ActiveModel to your commandos commands. ## PREREQUISITES * ruby-2.4.0 ## DEPENDENCIES * ActiveModel ## INSTALLATION In your Gemfile ```ruby gem 'commandos-activemodel' ``` ### EXAMPLES ```ruby class FooCommand < Commandos::IAmACommand use Commandos::Plugins::ActiveModelValidationsPlugin attr_reader :name, :value def initialize(name: nil, value: nil) @name = name @value = value end validates_presence_of :name end ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commandos-activemodel-0.1.2 | README.md |