mikldt-authenticates_access 0.2.0 → 0.2.1
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/lib/authenticates_access.rb +1 -0
- data/mikldt-authenticates_access.gemspec +4 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/authenticates_access.rb
CHANGED
@@ -211,6 +211,7 @@ module AuthenticatesAccess
|
|
211
211
|
def autosets_owner_on_create
|
212
212
|
has_owner # this will do nothing if the user has already set up has_owner :something
|
213
213
|
# the hook runs before validation so we can validate_associated
|
214
|
+
authenticates_access
|
214
215
|
before_validation_on_create :autoset_owner
|
215
216
|
end
|
216
217
|
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mikldt-authenticates_access}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael DiTore"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-26}
|
13
13
|
s.description = %q{Model-based read and write user authorization in Rails}
|
14
14
|
s.email = %q{mikldt@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -44,10 +44,10 @@ Gem::Specification.new do |s|
|
|
44
44
|
s.summary = %q{Model-based Authorization on Rails!}
|
45
45
|
s.test_files = [
|
46
46
|
"test/authenticates_access_test.rb",
|
47
|
+
"test/user.rb",
|
47
48
|
"test/test_helper.rb",
|
48
49
|
"test/owned_item.rb",
|
49
|
-
"test/admin_item.rb"
|
50
|
-
"test/user.rb"
|
50
|
+
"test/admin_item.rb"
|
51
51
|
]
|
52
52
|
|
53
53
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mikldt-authenticates_access
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael DiTore
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-26 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -72,7 +72,7 @@ specification_version: 3
|
|
72
72
|
summary: Model-based Authorization on Rails!
|
73
73
|
test_files:
|
74
74
|
- test/authenticates_access_test.rb
|
75
|
+
- test/user.rb
|
75
76
|
- test/test_helper.rb
|
76
77
|
- test/owned_item.rb
|
77
78
|
- test/admin_item.rb
|
78
|
-
- test/user.rb
|