Module: DeliveryHelper

Defined in:
app/helpers/delivery_helper.rb

Overview

Helper methods for delivering content in your views.

Instance Method Summary collapse

Instance Method Details

#deliver(resource, options = {}) ⇒ Object

Takes a deliverable resource, loops through its contexts and returns the resulting output.



11
12
13
# File 'app/helpers/delivery_helper.rb', line 11

def deliver(resource, options = {})    
  Transit::Delivery.new(resource, self, options).deliver
end