Sha256: 9b5156b7f4f3d4ce30815393313838ecc657ede5ddef1b9244244fb895be3570
Contents?: true
Size: 1018 Bytes
Versions: 1
Compression:
Stored size: 1018 Bytes
Contents
module Commandos module Plugins module VirtusPlugin module ClassMethods def self.extended(object) object.send(:include, Virtus.value_object) end def bool(value, options={}) attribute value, Axiom::Types::Boolean, options end def date(value, options={}) attribute value, Date, options end def datetime(value, options={}) attribute value, DateTime, options end def decimal(value, options={}) attribute value, BigDecimal, options end def float(value, options={}) attribute value, Float, options end def integer(value, options={}) attribute value, Integer, options end def string(value, options={}) attribute value, String, options end def time(value, options={}) attribute value, Time, options end end module InstanceMethods end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commandos-virtus-0.1.2 | lib/commandos_virtus/plugins/virtus_plugin.rb |