Class: Spina::Admin::Journal::Licence
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Spina::Admin::Journal::Licence
- Includes:
- AttrJson::NestedAttributes, AttrJson::Record, Partable, TranslatedContent
- Defined in:
- app/models/spina/admin/journal/licence.rb
Overview
A record to hold information about copyright licences.
Associated with individual articles.
Validators
- Presence
Instance Attribute Summary collapse
-
#abbreviated_name ⇒ String
An optional abbreviated form of the licence name.
-
#articles ⇒ ActiveRecord::Relation
Articles which use this licence.
-
#name ⇒ String
The name of the licence.
Instance Attribute Details
#abbreviated_name ⇒ String
Returns an optional abbreviated form of the licence name.
24 |
# File 'app/models/spina/admin/journal/licence.rb', line 24 has_many :articles, dependent: :nullify |
#articles ⇒ ActiveRecord::Relation
Returns articles which use this licence.
24 |
# File 'app/models/spina/admin/journal/licence.rb', line 24 has_many :articles, dependent: :nullify |
#name ⇒ String
Returns the name of the licence.
24 |
# File 'app/models/spina/admin/journal/licence.rb', line 24 has_many :articles, dependent: :nullify |