bitroles 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
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
 
@@ -1,3 +1,3 @@
1
1
  module Bitroles
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/bitroles.rb CHANGED
@@ -47,7 +47,3 @@ module Bitroles
47
47
  roles.include? role.to_s
48
48
  end
49
49
  end
50
-
51
- class ActiveRecord::Base
52
- include Bitroles
53
- end
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.3
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.3
84
+ summary: Bitroles gem v0.0.4
85
85
  test_files: []