Sha256: f24a4999b1fb17fe46fbe604e7fd8fc3e179f87a33827651b0ea5862105cbc91

Contents?: true

Size: 331 Bytes

Versions: 4

Compression:

Stored size: 331 Bytes

Contents

module Phcscriptcdn
  class Script::Author < ApplicationRecord

    # Relationships

    # Listing (None Nested)
    has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'

    # Validation for Form Fields
    validates :authorfirstname,
      presence: true

    validates :authorlastname,
      presence: true

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcscriptcdn-5.1.2 app/models/phcscriptcdn/script/author.rb
phcscriptcdn-5.1.1 app/models/phcscriptcdn/script/author.rb
phcscriptcdn-5.1.0 app/models/phcscriptcdn/script/author.rb
phcscriptcdn-5.0.1 app/models/phcscriptcdn/script/author.rb