Sha256: a6614d942136cb03006b32272e7d85e719cc30995a523d45dac82aab65fbc13f
Contents?: true
Size: 419 Bytes
Versions: 299
Compression:
Stored size: 419 Bytes
Contents
module Avo module Fields class BadgeField < BaseField attr_reader :options def initialize(id, **args, &block) super(id, **args, &block) hide_on [:edit, :new] default_options = {info: :info, success: :success, danger: :danger, warning: :warning} @options = args[:options].present? ? default_options.merge(args[:options]) : default_options end end end end
Version data entries
299 entries across 299 versions & 1 rubygems