Sha256: e5d90f426da6f0fb626f50da83c744eab7d9eb709251f3e3aa478e2a78b67e4d
Contents?: true
Size: 299 Bytes
Versions: 19
Compression:
Stored size: 299 Bytes
Contents
module Carnival::FieldRenderers class FieldRenderer def initialize(presenter, field_name) @presenter = presenter @field_name = field_name end def render_field(model) { field_type: @presenter.field_type(@field_name), value: model.send(@field_name) } end end end
Version data entries
19 entries across 19 versions & 1 rubygems