-
-
Save travisdmathis/3bf7d843ab775306bff2 to your computer and use it in GitHub Desktop.
This file contains 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
child = catalog.create_child(folder.name, user) | |
if child.valid? | |
child | |
else | |
child = current_user.catalogs.find_by_name(folder.name) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment