Sha256: d612f8caf552dc7880d252ea82b6f295e7f5a1e0cf3ee84dee0b505f28816424
Contents?: true
Size: 383 Bytes
Versions: 1
Compression:
Stored size: 383 Bytes
Contents
module Commandoes module Plugins module ActiveModelValidationsPlugin module ClassMethods def self.extended(object) object.send(:include, ActiveModel::Validations) end end module InstanceMethods def valid? @valid ||= super end def invalid? !valid? end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commandoes-activemodel-0.1.0 | lib/commandoes_activemodel/plugins/validations_plugin.rb |