Sha256: be469c7b5b32dd2a5d184778d84aafec43b636896f290d4e0268c28cfabf6202

Contents?: true

Size: 267 Bytes

Versions: 11

Compression:

Stored size: 267 Bytes

Contents

class Event < ActiveRecord::Base
  include Fae::Concerns::Models::Base

  def fae_display_field
    name
  end

  validates :city, inclusion: ["Los Angeles", "San Francisco", "Portland"];
  validates :name, presence: true

  belongs_to :release
  has_many :people
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fae-rails-1.6.0 spec/dummy/app/models/event.rb
fae-rails-1.5.1 spec/dummy/app/models/event.rb
fae-rails-1.5.0 spec/dummy/app/models/event.rb
fae-rails-1.4.1 spec/dummy/app/models/event.rb
fae-rails-1.4.0 spec/dummy/app/models/event.rb
fae-rails-1.3.1 spec/dummy/app/models/event.rb
fae-rails-1.3.0 spec/dummy/app/models/event.rb
fae-rails-1.2.5 spec/dummy/app/models/event.rb
fae-rails-1.2.4 spec/dummy/app/models/event.rb
fae-rails-1.2.3 spec/dummy/app/models/event.rb
fae-rails-1.2.2 spec/dummy/app/models/event.rb