Sha256: a9557ded46c51f524cb803ff2761f4e5bfdc9928d674e921b06f918717b51d4e
Contents?: true
Size: 410 Bytes
Versions: 4
Compression:
Stored size: 410 Bytes
Contents
require "virtus" module Representable::Coercion def self.included(base) base.class_eval do include Virtus extend ClassMethods end end module ClassMethods def property(name, args={}) attribute(name, args[:type]) if args[:type] # FIXME (in virtus): undefined method `superclass' for VirtusCoercionTest::SongRepresenter:Module super(name, args) end end end
Version data entries
4 entries across 4 versions & 1 rubygems