Skip to content

Commit

Permalink
Add validate in event
Browse files Browse the repository at this point in the history
  • Loading branch information
yuko committed Feb 25, 2015
1 parent b02b346 commit 3b1ef5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/event.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
class Event < ActiveRecord::Base

validates_presence_of :summary, :dtstart, :dtend

def to_event
return {
id: id,
Expand Down

0 comments on commit 3b1ef5a

Please sign in to comment.