Class: Mosaico::Project
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Mosaico::Project
- Defined in:
- app/models/mosaico/project.rb
Overview
a project is created from a mosaico template
Instance Method Summary collapse
Instance Method Details
#template ⇒ Object
4 5 6 |
# File 'app/models/mosaico/project.rb', line 4 def template @template ||= Mosaico.find_template(template_name) end |
#template=(new_template) ⇒ Object
8 9 10 11 |
# File 'app/models/mosaico/project.rb', line 8 def template=(new_template) template_name = new_template.name @template = new_template end |