minor shit updates
This commit is contained in:
parent
29ea95b4c6
commit
73d5074037
2
Gemfile
2
Gemfile
|
@ -51,7 +51,7 @@ gem 'rb-readline' if RUBY_PLATFORM.downcase.include?("linux")
|
||||||
|
|
||||||
gem "impressionist", :git => 'git://github.com/charlotte-ruby/impressionist.git'
|
gem "impressionist", :git => 'git://github.com/charlotte-ruby/impressionist.git'
|
||||||
#gem 'contacts'
|
#gem 'contacts'
|
||||||
gem 'event-calendar', :require => 'event_calendar'
|
gem 'event-calendar', :require => 'event_calendar'#, :git => 'git://github.com/elevation/event_calendar.git'
|
||||||
|
|
||||||
gem 'redis','>= 2.1.1'
|
gem 'redis','>= 2.1.1'
|
||||||
gem 'chinese_pinyin', '0.4.1'
|
gem 'chinese_pinyin', '0.4.1'
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
class Event
|
class Event
|
||||||
include Mongoid::Document
|
include Mongoid::Document
|
||||||
|
include EventCalendar
|
||||||
has_event_calendar
|
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
|
end
|
||||||
|
|
Reference in New Issue