Redirect to root path if splash is not public

This commit is contained in:
Gopesh Tulsyan 2014-08-03 11:27:54 +05:30
parent 4955b2b7b8
commit 23c68211f0
2 changed files with 22 additions and 6 deletions

View file

@ -1,7 +1,7 @@
class ConferenceController < ApplicationController
def show
@conference = Conference.find_by_short_title(params[:id])
not_found unless @conference.make_conference_public?
redirect_to root_path, notice: "Conference not ready yet!!" unless @conference.make_conference_public?
end
def gallery_photos