Sha256: ee2f2bbc29f275d03a65b675f302f7df0ff91f0b44fa1c886e0c03bf0af8b290
Contents?: true
Size: 476 Bytes
Versions: 4
Compression:
Stored size: 476 Bytes
Contents
gem 'virtus' require 'virtus' require 'representable/coercion' module Roar # Use the +:type+ option to specify the conversion type. # class ImmigrantSong # include Roar::Representer::JSON # include Roar::Representer::Feature::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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
roar-1.0.1 | lib/roar/coercion.rb |
roar-1.0.0 | lib/roar/coercion.rb |
roar-1.0.0.beta2 | lib/roar/coercion.rb |
roar-1.0.0.beta1 | lib/roar/coercion.rb |