Sha256: 96c911531a917b0e2f500f05a17612b7103e1c3fe6fd16dce10b04b8dc67f398
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
module Trailblazer::V2_1 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trailblazer-future-2.1.0.rc1 | lib/trailblazer/v2_1/rails/form.rb |