Sha256: 6780cdc08da9402d6f707b8f6f9f44d90a425d4699c3a43a41f6cb563b795e21

Contents?: true

Size: 199 Bytes

Versions: 31

Compression:

Stored size: 199 Bytes

Contents

class Author < ActiveRecord::Base
  validates_presence_of :name
  belongs_to :publisher

  has_many :books, dependent: :restrict_with_exception

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
releaf-core-1.1.22 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.21 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.20 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.19 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.18 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.17 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.16 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.15 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.14 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.13 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.12 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.11 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.10 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.9 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.8 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.7 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.6 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.5 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.4 lib/generators/dummy/templates/models/author.rb
releaf-core-1.1.3 lib/generators/dummy/templates/models/author.rb