Create restful invites controller and ajaxified the workflow.
This commit is contained in:
parent
5cf75ee32a
commit
178fba7b30
11 changed files with 89 additions and 52 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue