Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rubocop-Use string interpolation(notes_controller) #1

Closed
wants to merge 1 commit into from

Conversation

Narayan1670
Copy link
Owner

Fixes publiclab#11446

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

Copy link

@TildaDares TildaDares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work @Narayan1670. Thank you!!

@@ -140,7 +140,7 @@ def create
return
elsif params[:draft] == "true"
token = SecureRandom.urlsafe_base64(16, false)
@node.slug = @node.slug + " token:" + token
@node.slug ="#{@node.slug} token:#{token}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@node.slug ="#{@node.slug} token:#{token}"
@node.slug = "#{@node.slug} token:#{token}"

@TildaDares
Copy link

Oops I made a mistake. You need to push to publiclab/plots2 and not your forked repo.

@Narayan1670 Narayan1670 closed this Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rubocop - Use string interpolation (notes_controller)
2 participants