adding tests and some fixes in ability

This commit is contained in:
Stella Rouzi 2014-07-23 18:05:25 +03:00
parent 3f8a648f17
commit 439d632251
4 changed files with 113 additions and 36 deletions

View file

@ -1,6 +1,6 @@
class ProposalController < ApplicationController
before_filter :verify_user, except: [:show]
load_and_authorize_resource :conference, find_by: :short_title
load_resource :conference, find_by: :short_title
load_and_authorize_resource :event, parent: false
before_filter :setup