permissive 0.2.6.alpha → 0.2.7.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/permissive/permission.rb +1 -1
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6.alpha
1
+ 0.2.7.alpha
@@ -4,7 +4,7 @@ module Permissive
4
4
  belongs_to :permitted_object, :polymorphic => true
5
5
  belongs_to :scoped_object, :polymorphic => true
6
6
  named_scope :granted, lambda {|permissions|
7
- {:conditions => permissions.map{|bit| "mask & #{bit}"}.join(' AND ')}
7
+ {:conditions => permissions.map{|bit| "(mask & #{bit}) > 0"}.join(' AND ')}
8
8
  }
9
9
  named_scope :on, lambda {|scoped_object|
10
10
  case scoped_object
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 6
8
+ - 7
9
9
  - alpha
10
- version: 0.2.6.alpha
10
+ version: 0.2.7.alpha
11
11
  platform: ruby
12
12
  authors:
13
13
  - Flip Sasser
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-04-21 00:00:00 -04:00
18
+ date: 2010-04-23 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21