Class: Spina::PagePart
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Spina::PagePart
- Includes:
- Part
- Defined in:
- app/models/spina/page_part.rb
Instance Method Summary collapse
Methods included from Part
#content, #partable_attributes=, #to_s
Instance Method Details
#position(theme) ⇒ Object
16 17 18 |
# File 'app/models/spina/page_part.rb', line 16 def position(theme) page.view_template_config(theme)[:page_parts].index { |page_part| page_part == self.name }.to_i end |