Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages