Sha256: 89f896a96899b323a7fa8ce17f214fd389dd566c9c1163289da15e0e261de959

Contents?: true

Size: 395 Bytes

Versions: 8

Compression:

Stored size: 395 Bytes

Contents

class Movie < ActiveRecord::Base

  belongs_to :prequel, :class_name => "Movie"
  belongs_to :reviewer, :class_name => "User"
  belongs_to :uuid_reviewer, :class_name => "UuidUser"
  belongs_to :premiere_site, polymorphic: true, required: false

  validate do |record|
    record.errors.add(:reviewer, 'may not be deleted') if record.reviewer and record.reviewer.deleted?
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cucumber_factory-2.6.0 spec/support/models/movie.rb
cucumber_factory-2.5.0 spec/support/models/movie.rb
cucumber_factory-2.4.1 spec/support/models/movie.rb
cucumber_factory-2.4.0 spec/support/models/movie.rb
cucumber_factory-2.3.1 spec/support/models/movie.rb
cucumber_factory-2.3.0 spec/support/models/movie.rb
cucumber_factory-2.2.0 spec/support/models/movie.rb
cucumber_factory-2.1.1 spec/support/models/movie.rb