class Entry < ActiveRecord::Base
  belongs_to :import
  belongs_to :user

  scope :by_date, -> { order("date DESC") }

  def self.newest
    by_date.first
  end

  def self.random
    order("RANDOM()").first
  end

  def for_today?
    date == Time.zone.now.in_time_zone(user.time_zone).to_date
  end
end

class Entry < ActiveRecord::Base
  belongs_to :import
  belongs_to :user

  def self.by_date
    order("date DESC")
  end

  def self.newest
    by_date.first
  end

  def self.random
    order("RANDOM()").first
  end

  def for_today?
    date == Time.zone.now.in_time_zone(user.time_zone).to_date
  end
end

Replace `scope` macro with `def self.scope`
Replace `scope` macro with `def self.scope`

It's against the thoughtbot styleguide, which is linked in the README.
