wheels 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/controllers/users_controller.rb +8 -5
- data/wheels.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.23
|
@@ -11,13 +11,16 @@ class UsersController < InheritedResources::Base
|
|
11
11
|
def update
|
12
12
|
if params[:commit] == "Update Account"
|
13
13
|
@user = User.find(params[:id])
|
14
|
+
update! do |success, failure|
|
15
|
+
failure.html{redirect_to my_account_path}
|
16
|
+
success.html{flash[:notice] = "Your account has been updated."; redirect_to root_url}
|
17
|
+
end
|
14
18
|
else
|
15
19
|
@user = resource
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
success.html{flash[:notice] = "Your account has been updated."; redirect_to root_url}
|
20
|
+
@user.password = params[:user]["password"]
|
21
|
+
@user.save
|
22
|
+
flash[:notice] = "Your password has been changed."
|
23
|
+
redirect_to root_url
|
21
24
|
end
|
22
25
|
end
|
23
26
|
|
data/wheels.gemspec
CHANGED