Sha256: c9965697f1bbce26bdf461dd110998dc5eb87d21155ac6735769cd6a90cd8454
Contents?: true
Size: 433 Bytes
Versions: 5
Compression:
Stored size: 433 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
5 entries across 5 versions & 1 rubygems