Sha256: 07620e6e7deb07cce41197bc7699c5974573112bbc25255ffd6725a3165ac6f0
Contents?: true
Size: 436 Bytes
Versions: 5
Compression:
Stored size: 436 Bytes
Contents
require 'representable/decorator/coercion' module Reform::Form::Coercion def self.included(base) base.extend(ClassMethods) base.features << self end module ClassMethods def representer_class super.class_eval do include Representable::Decorator::Coercion unless self < Representable::Decorator::Coercion # DISCUSS: include it once. why do we have to check this? self end end end end
Version data entries
5 entries across 5 versions & 1 rubygems