Class: Spina::Account
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spina::Account
- Includes:
- Partable
- Defined in:
- app/models/spina/account.rb
Instance Method Summary collapse
Methods included from Partable
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_s ⇒ Object
16 17 18 |
# File 'app/models/spina/account.rb', line 16 def to_s name end |