Sha256: 0cab79b07d0f0c95912b1d7a334416eee011a12a2f1e1e5265d481d7efdb3073
Contents?: true
Size: 441 Bytes
Versions: 5
Compression:
Stored size: 441 Bytes
Contents
gem 'virtus' require 'virtus' require 'representable/coercion' module Roar # Use the +:type+ option to specify the conversion type. # class ImmigrantSong # include Roar::JSON # include Roar::Coercion # # property :composed_at, :type => DateTime, :default => "May 12th, 2012" # end module Coercion def self.included(base) base.class_eval do include Representable::Coercion end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
roar-1.1.1 | lib/roar/coercion.rb |
roar-1.1.0 | lib/roar/coercion.rb |
roar-1.0.4 | lib/roar/coercion.rb |
roar-1.0.3 | lib/roar/coercion.rb |
roar-1.0.2 | lib/roar/coercion.rb |