Class: TaggedSectionKeyword

Inherits:
ApplicationRecord show all
Includes:
Housekeeping, Shared::IsData
Defined in:
app/models/tagged_section_keyword.rb

Overview

TODO:

TaggedSectionKeyword definition…

Instance Attribute Summary collapse

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

transaction_with_retry

Instance Attribute Details

#keyword_idInteger

TODO:

Returns:

  • (Integer)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/models/tagged_section_keyword.rb', line 20

class TaggedSectionKeyword < ApplicationRecord
  include Housekeeping
  include Shared::IsData


  acts_as_list scope: [:otu_page_layout_section, :project_id]

  belongs_to :otu_page_layout_section
  belongs_to :keyword

  validates :keyword, presence: true
  validates :otu_page_layout_section, presence: true

end

#otu_page_layout_section_idInteger

TODO:

Returns:

  • (Integer)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/models/tagged_section_keyword.rb', line 20

class TaggedSectionKeyword < ApplicationRecord
  include Housekeeping
  include Shared::IsData


  acts_as_list scope: [:otu_page_layout_section, :project_id]

  belongs_to :otu_page_layout_section
  belongs_to :keyword

  validates :keyword, presence: true
  validates :otu_page_layout_section, presence: true

end

#positionInteger

TODO:

Returns:

  • (Integer)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/models/tagged_section_keyword.rb', line 20

class TaggedSectionKeyword < ApplicationRecord
  include Housekeeping
  include Shared::IsData


  acts_as_list scope: [:otu_page_layout_section, :project_id]

  belongs_to :otu_page_layout_section
  belongs_to :keyword

  validates :keyword, presence: true
  validates :otu_page_layout_section, presence: true

end

#project_idInteger

the project ID

Returns:

  • (Integer)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'app/models/tagged_section_keyword.rb', line 20

class TaggedSectionKeyword < ApplicationRecord
  include Housekeeping
  include Shared::IsData


  acts_as_list scope: [:otu_page_layout_section, :project_id]

  belongs_to :otu_page_layout_section
  belongs_to :keyword

  validates :keyword, presence: true
  validates :otu_page_layout_section, presence: true

end