Class: Pageflow::Chapter
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Pageflow::Chapter
- Defined in:
- app/models/pageflow/chapter.rb
Instance Method Summary collapse
Instance Method Details
#configuration ⇒ Object
10 11 12 |
# File 'app/models/pageflow/chapter.rb', line 10 def configuration super || {} end |
#copy_to(storyline) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'app/models/pageflow/chapter.rb', line 14 def copy_to(storyline) chapter = dup storyline.chapters << chapter pages.each do |page| page.copy_to(chapter) end end |