wheels 0.1.23 → 0.1.24
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 +1 -1
- data/app/models/access_control_entry.rb +5 -1
- data/wheels.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.24
|
@@ -16,7 +16,7 @@ class UsersController < InheritedResources::Base
|
|
16
16
|
success.html{flash[:notice] = "Your account has been updated."; redirect_to root_url}
|
17
17
|
end
|
18
18
|
else
|
19
|
-
@user =
|
19
|
+
@user = User.find(params[:id])
|
20
20
|
@user.password = params[:user]["password"]
|
21
21
|
@user.save
|
22
22
|
flash[:notice] = "Your password has been changed."
|
@@ -67,7 +67,11 @@ class AccessControlEntry < ActiveRecord::Base
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def able_options
|
70
|
-
resource.
|
70
|
+
if resource.is_a?(ActiveRecord::Base)
|
71
|
+
options.merge({:id=>resource.id})
|
72
|
+
else
|
73
|
+
options
|
74
|
+
end
|
71
75
|
end
|
72
76
|
|
73
77
|
def self.can(verb, resource, options={})
|
data/wheels.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{wheels}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.24"
|
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"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-10-03}
|
13
13
|
s.description = %q{Call rails generate wheels.}
|
14
14
|
s.email = %q{tgannon@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 24
|
9
|
+
version: 0.1.24
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tyler Gannon
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-03 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|