You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
class Movie < ApplicationRecord
|
|
def flop?
|
|
total_gross.blank? || total_gross < 225_000_000
|
|
end
|
|
def self.released
|
|
where("released_on < ?", Time.now).order(released_on: :desc)
|
|
end
|
|
end
|