11 lines
333 B
Ruby
11 lines
333 B
Ruby
class Event
|
|
include Mongoid::Document
|
|
include EventCalendar
|
|
has_event_calendar
|
|
|
|
# def self.events_for_date_range(start_d, end_d, find_options = {})
|
|
# where(find_options.merge(self.end_at_field.to_sym.lt => end_d.to_time.utc,
|
|
# self.start_at_field.to_sym.gt => start_d.to_time.utc)).asc(self.start_at_field)
|
|
# end
|
|
end
|