mikldt-authenticates_access 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -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.0"
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-25}
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.0
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-25 00:00:00 -05:00
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