Sha256: cbcb54273232a539ffe253488e533da7d1ac505550ec5d8e100e53dcfe38ca99
Contents?: true
Size: 475 Bytes
Versions: 27
Compression:
Stored size: 475 Bytes
Contents
module Trailblazer class Rails::Form < SimpleDelegator def initialize(delegated, model_class) super(delegated) @model_class = model_class end def self.name # for whatever reason, validations climb up the inheritance tree and require _every_ class to have a name (4.1). "Reform::Form" end def model_name ::ActiveModel::Name.new(self, nil, @model_class.to_s.camelize) end def to_model self end end end
Version data entries
27 entries across 27 versions & 1 rubygems