Class: Spina::Admin::Journal::Licence

Inherits:
ApplicationRecord
  • Object
show all
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

#name

Instance Attribute Summary collapse

Instance Attribute Details

#abbreviated_nameString

Returns an optional abbreviated form of the licence name.

Returns:

  • (String)

    an optional abbreviated form of the licence name



24
# File 'app/models/spina/admin/journal/licence.rb', line 24

has_many :articles, dependent: :nullify

#articlesActiveRecord::Relation

Returns articles which use this licence.

Returns:

  • (ActiveRecord::Relation)

    articles which use this licence



24
# File 'app/models/spina/admin/journal/licence.rb', line 24

has_many :articles, dependent: :nullify

#nameString

Returns the name of the licence.

Returns:

  • (String)

    the name of the licence



24
# File 'app/models/spina/admin/journal/licence.rb', line 24

has_many :articles, dependent: :nullify