Created
September 13, 2019 22:59
-
-
Save eri-b/c0223c80158c9828be7a2733dbdd9ff2 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
| def find_site | |
| @slug = params[:id].downcase | |
| @site = Site.find_by(name: @slug) | |
| if @site.present? | |
| expired? | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment