role_me 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -33,7 +33,7 @@ And use the role_me:role_migration generator to create the role migration, if yo
33
33
  If you want to use a custom model for Roles, please make sure that:
34
34
 
35
35
  * It has a `with_name(role_name)` scope. This must filter the roles by their names.
36
- * It responds to `find_or_create_by_name(role_name)`. Implement this if you are not using AR.
36
+ * It responds to `find_or_create_by_name(role_name)`.
37
37
 
38
38
  === has_roles Options
39
39
 
@@ -2,6 +2,8 @@
2
2
  #
3
3
  class RoleMe::Role < ActiveRecord::Base
4
4
 
5
+ set_table_name :role_me_roles
6
+
5
7
  scope :with_name, lambda { |role_name| where(:name => role_name).limit(1) }
6
8
 
7
9
  end
@@ -1,3 +1,3 @@
1
1
  module RoleMe
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: role_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-12 00:00:00.000000000Z
12
+ date: 2011-10-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &2156007680 !ruby/object:Gem::Requirement
16
+ requirement: &2164682280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156007680
24
+ version_requirements: *2164682280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &2156005720 !ruby/object:Gem::Requirement
27
+ requirement: &2164681680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2156005720
35
+ version_requirements: *2164681680
36
36
  description: An easy way to add roles to your model.
37
37
  email:
38
38
  - tscolari@gmail.com
@@ -68,7 +68,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  segments:
70
70
  - 0
71
- hash: -564280631143811076
71
+ hash: 1220059932690040747
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  segments:
79
79
  - 0
80
- hash: -564280631143811076
80
+ hash: 1220059932690040747
81
81
  requirements: []
82
82
  rubyforge_project:
83
83
  rubygems_version: 1.8.6