Sha256: 309ce01a7b538a81438605a4aaf3afa57aed42d1b176fe94d7ed8a8e07b0bd50

Contents?: true

Size: 208 Bytes

Versions: 6

Compression:

Stored size: 208 Bytes

Contents

class Person < ActiveRecord::Base
  outpost_model public_route_key: "person"

  validates :name, presence: true
  validates :email, presence: true

  def route_hash
    {
      :id => self.id
    }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
outpost-cms-0.1.4 spec/internal/app/models/person.rb
outpost-cms-0.1.3 spec/internal/app/models/person.rb
outpost-cms-0.1.2 spec/internal/app/models/person.rb
outpost-cms-0.1.1 spec/internal/app/models/person.rb
outpost-cms-0.1.0 spec/internal/app/models/person.rb
outpost-cms-0.0.5 spec/internal/app/models/person.rb