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

DRY up PostsController with before_action #24

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

cllns
Copy link
Contributor

@cllns cllns commented Nov 21, 2015

Ends up having net 0 lines because of listing all the different actions on their own line :)

@cllns cllns closed this Nov 22, 2015
@cllns cllns reopened this Nov 22, 2015
@@ -1,4 +1,9 @@
class PostsController < ApplicationController
before_action :assign_post_by_validation_and_id, only: [:edit,
Copy link
Member

Choose a reason for hiding this comment

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

is this really the indentation rubocop likes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

¯ \ _ (ツ) _ / ¯

@cllns
Copy link
Contributor Author

cllns commented Dec 4, 2015

Addressed all comments :) Thoughts @mi-wood ?

@mi-wood
Copy link
Member

mi-wood commented Dec 28, 2015

lgtm! 🚨 🐹 🚨

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.

2 participants