Fix features/ability test

This commit is contained in:
Chaitanya 2017-04-21 11:08:12 +05:30
parent 7ea91d7d61
commit 6de3fdc249

View file

@ -3,7 +3,7 @@ module Admin
# By authorizing 'conference' resource, we can ensure there will be no unauthorized access to # By authorizing 'conference' resource, we can ensure there will be no unauthorized access to
# the schedule of a conference, which should not be accessed in the first place # the schedule of a conference, which should not be accessed in the first place
load_and_authorize_resource :conference, find_by: :short_title load_and_authorize_resource :conference, find_by: :short_title
load_resource :program, through: :conference, singleton: true load_and_authorize_resource :program, through: :conference, singleton: true
load_and_authorize_resource :schedule, through: :program load_and_authorize_resource :schedule, through: :program
load_resource :event_schedules, through: :schedule load_resource :event_schedules, through: :schedule
load_resource :selected_schedule, through: :program, singleton: true load_resource :selected_schedule, through: :program, singleton: true