Class: Spina::Account

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Partable
Defined in:
app/models/spina/account.rb

Instance Method Summary collapse

Methods included from Partable

#part

Instance Method Details

#content(layout_part) ⇒ Object



20
21
22
23
# File 'app/models/spina/account.rb', line 20

def content(layout_part)
  layout_part = layout_parts.where(name: layout_part).first
  layout_part.try(:content)
end

#to_sObject



16
17
18
# File 'app/models/spina/account.rb', line 16

def to_s
  name
end