image file

This commit is contained in:
Nicolas Bally 2013-12-09 23:12:05 +01:00
parent dab22ee570
commit 8ce52b0d9f

View File

@ -11,7 +11,7 @@ class Event < ActiveRecord::Base
attr_accessor :start_at_date, :start_at_time, :stop_at_date, :stop_at_time, :event_id
has_one :block, :as => :blockable
belongs_to :image_file
scope :between, lambda { |start, stop|
after(start).before(stop)