Class: OtuPageLayoutSection
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- OtuPageLayoutSection
- Includes:
- Housekeeping, Shared::IsData
- Defined in:
- app/models/otu_page_layout_section.rb
Overview
OtuPageLayoutSection definition…
@todo
Direct Known Subclasses
Defined Under Namespace
Classes: DynamicSection, StandardSection, TaggedSection
Instance Attribute Summary collapse
- #dynamic_content_class ⇒ String
- #otu_page_layout_id ⇒ Integer
- #position ⇒ Integer
-
#project_id ⇒ Integer
the project ID.
- #topic_id ⇒ Integer
- #type ⇒ String
Method Summary
Methods included from Shared::IsData
#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar
Methods included from Housekeeping
#has_polymorphic_relationship?
Methods inherited from ApplicationRecord
Instance Attribute Details
#dynamic_content_class ⇒ String
TODO:
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'app/models/otu_page_layout_section.rb', line 28 class OtuPageLayoutSection < ApplicationRecord acts_as_list scope: [:otu_page_layout, :project_id] include Housekeeping include Shared::IsData belongs_to :otu_page_layout belongs_to :topic, inverse_of: :otu_page_layout_sections validates_presence_of :type validates_uniqueness_of :topic_id, scope: [:otu_page_layout_id] # def self.title # 'empty' # nil # end # # def title # self.class.title # end # # def self.description # nil # end # # def self.preview_image # 'sections/xxx.jpg' # end # # def content # {partial: '', # locals: {local1: 'value'} # } # end end |
#otu_page_layout_id ⇒ Integer
TODO:
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'app/models/otu_page_layout_section.rb', line 28 class OtuPageLayoutSection < ApplicationRecord acts_as_list scope: [:otu_page_layout, :project_id] include Housekeeping include Shared::IsData belongs_to :otu_page_layout belongs_to :topic, inverse_of: :otu_page_layout_sections validates_presence_of :type validates_uniqueness_of :topic_id, scope: [:otu_page_layout_id] # def self.title # 'empty' # nil # end # # def title # self.class.title # end # # def self.description # nil # end # # def self.preview_image # 'sections/xxx.jpg' # end # # def content # {partial: '', # locals: {local1: 'value'} # } # end end |
#position ⇒ Integer
TODO:
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'app/models/otu_page_layout_section.rb', line 28 class OtuPageLayoutSection < ApplicationRecord acts_as_list scope: [:otu_page_layout, :project_id] include Housekeeping include Shared::IsData belongs_to :otu_page_layout belongs_to :topic, inverse_of: :otu_page_layout_sections validates_presence_of :type validates_uniqueness_of :topic_id, scope: [:otu_page_layout_id] # def self.title # 'empty' # nil # end # # def title # self.class.title # end # # def self.description # nil # end # # def self.preview_image # 'sections/xxx.jpg' # end # # def content # {partial: '', # locals: {local1: 'value'} # } # end end |
#project_id ⇒ Integer
the project ID
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'app/models/otu_page_layout_section.rb', line 28 class OtuPageLayoutSection < ApplicationRecord acts_as_list scope: [:otu_page_layout, :project_id] include Housekeeping include Shared::IsData belongs_to :otu_page_layout belongs_to :topic, inverse_of: :otu_page_layout_sections validates_presence_of :type validates_uniqueness_of :topic_id, scope: [:otu_page_layout_id] # def self.title # 'empty' # nil # end # # def title # self.class.title # end # # def self.description # nil # end # # def self.preview_image # 'sections/xxx.jpg' # end # # def content # {partial: '', # locals: {local1: 'value'} # } # end end |
#topic_id ⇒ Integer
TODO:
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'app/models/otu_page_layout_section.rb', line 28 class OtuPageLayoutSection < ApplicationRecord acts_as_list scope: [:otu_page_layout, :project_id] include Housekeeping include Shared::IsData belongs_to :otu_page_layout belongs_to :topic, inverse_of: :otu_page_layout_sections validates_presence_of :type validates_uniqueness_of :topic_id, scope: [:otu_page_layout_id] # def self.title # 'empty' # nil # end # # def title # self.class.title # end # # def self.description # nil # end # # def self.preview_image # 'sections/xxx.jpg' # end # # def content # {partial: '', # locals: {local1: 'value'} # } # end end |
#type ⇒ String
TODO:
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'app/models/otu_page_layout_section.rb', line 28 class OtuPageLayoutSection < ApplicationRecord acts_as_list scope: [:otu_page_layout, :project_id] include Housekeeping include Shared::IsData belongs_to :otu_page_layout belongs_to :topic, inverse_of: :otu_page_layout_sections validates_presence_of :type validates_uniqueness_of :topic_id, scope: [:otu_page_layout_id] # def self.title # 'empty' # nil # end # # def title # self.class.title # end # # def self.description # nil # end # # def self.preview_image # 'sections/xxx.jpg' # end # # def content # {partial: '', # locals: {local1: 'value'} # } # end end |