Sha256: fad44ffdcb5cb1ae050601ab613a82e8a9798ddfa415e81afca2eca9b503e306

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

format :html do
  view :core, cache: :never do
    return super() if voo.hide? :test_context

    card.with_context test_context_card do
      super()
    end
  end

  def test_context_card
    card.left.fetch(:test_context)&.first_card
  end
end

format :email_html do
  view :core do
    voo.hide! :test_context
    super()
  end
end

format :email_text do
  view :core do
    voo.hide! :test_context
    super()
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
card-mod-email-0.18.1 set/abstract/test_context.rb
card-mod-email-0.18.0 set/abstract/test_context.rb