Monday, November 02, 2015

The scope body needs to be callable.

Change :

scope :world_has_not_ended, where('end_time >= ?', Time.now)

to

scope :world_has_not_ended, -> { where('end_time >= ?', Time.now) }