completed onboarding activity#26
Open
lmieu wants to merge 5 commits intopaircolumbus:masterfrom
lmieu:musielh
Open
completed onboarding activity#26lmieu wants to merge 5 commits intopaircolumbus:masterfrom lmieu:musielh
lmieu wants to merge 5 commits intopaircolumbus:masterfrom
lmieu:musielh
Conversation
mikegee
reviewed
Jan 20, 2017
| end | ||
|
|
||
| def move | ||
| @url = Url.where :bitly_clone => params[:short] |
Member
There was a problem hiding this comment.
Url.find_by(:bitly_clone => params[:short]) gives you either the found record or nil. That simplifies the later code a little, since it isn't wrapped in an array.
mikegee
reviewed
Jan 20, 2017
| validates :bitly_clone, uniqueness: true | ||
|
|
||
| def bitly_generate | ||
| rando_arr = ('a'..'z').to_a + ('A'..'Z').to_a |
mikegee
reviewed
Jan 20, 2017
| end | ||
|
|
||
| def validate_url | ||
| !!URI.regexp(['http','https']) |
Member
There was a problem hiding this comment.
I don't understand how this is being used. Doesn't this always return true?
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@jaybobo haven't touched authentication yet, but may do that in future