bitroles 0.0.3 → 0.0.4
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/README.md +8 -0
- data/lib/bitroles/version.rb +1 -1
- data/lib/bitroles.rb +0 -4
- metadata +2 -2
data/README.md
CHANGED
@@ -20,7 +20,11 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
```ruby
|
22
22
|
class MyModel < ActiveRecord::Base
|
23
|
+
|
24
|
+
include Bitroles
|
25
|
+
|
23
26
|
roles :admin, :moderator
|
27
|
+
|
24
28
|
end
|
25
29
|
```
|
26
30
|
By default bitroles uses roles_mask integer column in your table to store the roles. You can change column name pretty
|
@@ -28,7 +32,11 @@ easy:
|
|
28
32
|
|
29
33
|
```ruby
|
30
34
|
class MyModel < ActiveRecord::Base
|
35
|
+
|
36
|
+
include Bitroles
|
37
|
+
|
31
38
|
roles :admin, :moderator, mask_column: :someothercolumn
|
39
|
+
|
32
40
|
end
|
33
41
|
```
|
34
42
|
|
data/lib/bitroles/version.rb
CHANGED
data/lib/bitroles.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitroles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -81,5 +81,5 @@ rubyforge_project:
|
|
81
81
|
rubygems_version: 1.8.24
|
82
82
|
signing_key:
|
83
83
|
specification_version: 3
|
84
|
-
summary: Bitroles gem v0.0.
|
84
|
+
summary: Bitroles gem v0.0.4
|
85
85
|
test_files: []
|