Last active
September 28, 2019 00:28
-
-
Save eri-b/0e1a15a91cddb8e9be700739c1988270 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sites_controller.rb | |
| def unlocked? | |
| if private? | |
| redirect_to main_path(@site.name), notice: 'Site is locked.' | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment