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.

14 lines
218 B

module MoviesHelper
def total_gross(movie)
if movie.flop?
"Flop!"
else
number_to_currency(movie.total_gross, precision: 0)
end
end
def year_of(movie)
movie.released_on.year
end
end