Class: Movie

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/movie.rb

Overview

Schema Information

Table name: movies

id         :integer          not null, primary key
title      :string(255)
year       :integer
created_at :datetime
updated_at :datetime

Instance Method Summary collapse

Instance Method Details

#old?Boolean


16
17
18
# File 'app/models/movie.rb', line 16

def old?
  begin year < 2000 rescue nil end
end