app/models/offerings/offering.rb
# Parses the +guest_postcard_layout+ using the object passed to it. Makes available the following variables within
# the parsed text: 
# 
# * +@object+ is the passed object
# * +@offering+ is this Offering (+self+)
# * +@app+ is the relevant ApplicationForOffering (which might be the same as @object, but not if @object is a group member)
Parses the +guest_postcard_layout+ using the object passed to it. Makes available the following variables within
the parsed text.


Parses the + guest_postcard_layout + using the object passed to it . Makes available the following variables within the parsed text .
def parse_guest_postcard_layout(object)
    @object = object
    @offering = self
    @app = @object.is_a?(ApplicationForOffering) ? @object : @object.application_for_offering
    res = ERB.new(guest_postcard_layout.to_s, 0, "%<>").result(binding)
  end
def parse_guest_postcard_layout ( object ) @object = object @offering = self @app = @object . is_a? ( ApplicationForOffering ) ? @object : @object . application_for_offering res = ERB . new ( guest_postcard_layout . to_s , 0 , "%<>" ) . result ( binding ) end
Parses the +guest_postcard_layout+ using the object passed to it.
Parses the + guest_postcard_layout + using the object passed to it .
object