Sha256: 0f16f37b4413562bf77839254a1a9b092396ba2848e4b436f9bce641e5b61a6e

Contents?: true

Size: 216 Bytes

Versions: 12

Compression:

Stored size: 216 Bytes

Contents

class Author < ActiveRecord::Base
  validates_presence_of :name
  belongs_to :publisher, required: false

  has_many :books, dependent: :restrict_with_exception

  def releaf_title
    "#{name} #{surname}"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
releaf-core-3.1.0 lib/generators/dummy/templates/models/author.rb
releaf-core-3.0.3 lib/generators/dummy/templates/models/author.rb
releaf-core-3.0.2 lib/generators/dummy/templates/models/author.rb
releaf-core-3.0.1 lib/generators/dummy/templates/models/author.rb
releaf-core-3.0.0 lib/generators/dummy/templates/models/author.rb
releaf-core-2.2.1 lib/generators/dummy/templates/models/author.rb
releaf-core-2.2.0 lib/generators/dummy/templates/models/author.rb
releaf-core-2.1.2 lib/generators/dummy/templates/models/author.rb
releaf-core-2.1.1 lib/generators/dummy/templates/models/author.rb
releaf-core-2.1.0 lib/generators/dummy/templates/models/author.rb
releaf-core-2.0.1 lib/generators/dummy/templates/models/author.rb
releaf-core-2.0.0 lib/generators/dummy/templates/models/author.rb