wheels 0.1.22 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.22
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
- end
17
-
18
- update! do |success, failure|
19
- failure.html{redirect_to my_account_path}
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wheels}
8
- s.version = "0.1.22"
8
+ s.version = "0.1.23"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Gannon"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 22
9
- version: 0.1.22
8
+ - 23
9
+ version: 0.1.23
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler Gannon