Sha256: 0cb238b4e79db86a58f6903ba643a30628fd7aca411ea86191491d0c21381d76
Contents?: true
Size: 753 Bytes
Versions: 44
Compression:
Stored size: 753 Bytes
Contents
card_reader :contextual_class card_reader :disappear card_reader :message def deliver context success.flash alert_message(context) end def alert_message context mcard = message.present? ? message_card : self format(:html).alert_message context, mcard end format :html do def alert_message context, message_card mformat = subformat message_card alert card.alert_class, true, card.disappear? do mformat.contextual_content context, view: alert_view(mformat) end end def alert_view format format.respond_to?(:notify) ? format.notify : :core end end def disappear? disappear.present? ? disappear_card.checked? : true end def alert_class contextual_class.present? ? contextual_class_card.item_name : :success end
Version data entries
44 entries across 44 versions & 2 rubygems