Sha256: 6e802f226106c7096e42cd841d8c4895bab4ef97555797486ed466737adb5972
Contents?: true
Size: 479 Bytes
Versions: 3
Compression:
Stored size: 479 Bytes
Contents
class SpudCalendarEvent < ActiveRecord::Base belongs_to :spud_calendar validates_presence_of :title, :start_at, :end_at, :spud_calendar_id attr_accessible :title, :description, :start_at, :end_at, :all_day, :spud_calendar_id, :spud_calendar, :location, :address, :address_2, :city, :state, :zip def self.in_month_of(month) where(["spud_calendar_events.start_at <= ? AND spud_calendar_events.start_at >= ?", month.end_of_month, month.beginning_of_month]) end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
spud_events-0.9.0 | app/models/spud_calendar_event.rb |
tb_events-1.0.1 | app/models/spud_calendar_event.rb |
tb_events-1.0 | app/models/spud_calendar_event.rb |