Sha256: c3e2b05848f098b5d6077134d1ea5660f6b8564353f209f0a93d581f070c67c9

Contents?: true

Size: 122 Bytes

Versions: 4

Compression:

Stored size: 122 Bytes

Contents

class Person < ActiveRecord::Base

  belongs_to :city

  validates :name, :presence => true

  def to_s
    name
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry_crud-1.5.0 test/templates/app/models/person.rb
dry_crud-1.4.0 test/templates/app/models/person.rb
dry_crud-1.3.1 test/templates/app/models/person.rb
dry_crud-1.3.0 test/templates/app/models/person.rb