Adds routing error check in conference#show
Adds make_conference_public to conference factory Added test
This commit is contained in:
parent
291a61bc8d
commit
2b94ba0281
4 changed files with 23 additions and 7 deletions
|
|
@ -1,5 +1,6 @@
|
|||
class ConferenceController < ApplicationController
|
||||
def show
|
||||
@conference = Conference.find_by_short_title(params[:id])
|
||||
not_found unless @conference.make_conference_public?
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue