Create restful invites controller and ajaxified the workflow.

This commit is contained in:
Benjamin Meichsner 2009-08-02 19:41:09 +02:00
parent 5cf75ee32a
commit 178fba7b30
11 changed files with 89 additions and 52 deletions

View file

@ -23,9 +23,7 @@ class Invite < ActiveRecord::Base
validates_presence_of :group
validates_presence_of :token
validates_presence_of :expires_at
attr_accessible :email, :user, :group
protected
# Before validation, set token and expires_at.