Sha256: 9e0adc949744074c30ef45051cce4a525459235b82295b697d0b0b837f5a430d
Contents?: true
Size: 409 Bytes
Versions: 192
Compression:
Stored size: 409 Bytes
Contents
module Avo module Fields class HeadingField < BaseField attr_reader :as_html def initialize(content, **args, &block) args[:updatable] = false super(content, **args, &block) hide_on :index @as_html = args[:as_html].present? ? args[:as_html] : false end def id "heading_#{name.to_s.parameterize.underscore}" end end end end
Version data entries
192 entries across 192 versions & 1 rubygems