Skip to content

Commit

Permalink
micro refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mokevnin committed Jul 22, 2013
1 parent 9a0477b commit 92aa0f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
2 changes: 1 addition & 1 deletion app/controllers/web/passwords_controller.rb
Expand Up @@ -28,7 +28,7 @@ def update
return redirect_to(root_path) unless params[:reset_password_token]
user = User.where(params.slice(:reset_password_token)).first!
@user = user.becomes(UserPasswordEditType)
if @user.update_attributes(params[:user])
if @user.update(params[:user])
f(:success)
redirect_to root_path
else
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/web/topics_controller.rb
Expand Up @@ -31,7 +31,7 @@ def edit
def update
@topic = current_user.topics.find(params[:id])
@topic = @topic.becomes(TopicType)
if @topic.update_attributes(params[:topic])
if @topic.update(params[:topic])
f(:success)
redirect_to edit_topic_path(@topic)
else
Expand Down
23 changes: 0 additions & 23 deletions config/database.yml.sample

This file was deleted.

0 comments on commit 92aa0f4

Please sign in to comment.