Sha256: 397aad7b1f85edb5c2d2a3c7b1d4bbccfe49e18a98ace2b39cdba8dfd7a3fe67
Contents?: true
Size: 432 Bytes
Versions: 36
Compression:
Stored size: 432 Bytes
Contents
module Avo module Fields class HeadingField < BaseField def initialize(name, **args, &block) @defaults = { updatable: false, partial_name: "heading-field", id: "heading_" + name.to_s.parameterize.underscore } super(name, **args, &block) hide_on :index @meta[:as_html] = args[:as_html].present? ? args[:as_html] : false end end end end
Version data entries
36 entries across 36 versions & 1 rubygems