Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Refactor UsersController#new (controller and view) #660

Merged
merged 4 commits into from
Jul 9, 2014

Conversation

shippy
Copy link
Contributor

@shippy shippy commented Jul 9, 2014

Moved logic from the view to the controller.

@user = User.new
end
else
@can_edit_login = (can? :create, User) # used in view
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be based on current_user == nil as well

@squidgetx
Copy link
Contributor

Looks good aside from the one inline comment I made

squidgetx added a commit that referenced this pull request Jul 9, 2014
Refactor UsersController#new (controller and view)
@squidgetx squidgetx merged commit 3432110 into development Jul 9, 2014
@orenyk orenyk added this to the 3.4.0 milestone Jul 11, 2014
@squidgetx squidgetx deleted the 190_refactor_views_users_new branch July 22, 2014 16:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants