Class: MessagePage

Inherits:
Page
  • Object
show all
Defined in:
app/models/message_page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mailer_varsObject

Returns the value of attribute mailer_vars.



3
4
5
# File 'app/models/message_page.rb', line 3

def mailer_vars
  @mailer_vars
end

Instance Method Details

#build_parts_from_hash!(content) ⇒ Object



9
10
11
12
13
# File 'app/models/message_page.rb', line 9

def build_parts_from_hash!(content)
  content.each do |k,v|
    (part(k) || parts.build(:name => k.to_s, :filter_id => "")).content = v
  end
end

#find_by_url(url, live = true, clean = true) ⇒ Object



5
6
7
# File 'app/models/message_page.rb', line 5

def find_by_url(url, live=true, clean=true)
  self
end