No commit activity in last 3 years
No release in over 3 years
A plugin for Commandos
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.5
~> 1.14
~> 0.1
~> 5.0
~> 10.0

Runtime

 Project Readme

COMMANDOES-ACTIVEMODEL

A plugin for the commandos library. This plugin adds ActiveModel to your commandos commands.

PREREQUISITES

  • ruby-2.4.0

DEPENDENCIES

  • ActiveModel

INSTALLATION

In your Gemfile

gem 'commandos-activemodel'

EXAMPLES

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