reuser 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/reuser/role.rb +1 -1
  2. metadata +2 -2
data/lib/reuser/role.rb CHANGED
@@ -25,7 +25,7 @@ module ReUser
25
25
  end
26
26
 
27
27
  def could?(name, data)
28
- @actions[name].call(data)
28
+ @actions[name] == Proc ? @actions[name].call(data) : true
29
29
  end
30
30
 
31
31
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reuser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-16 00:00:00.000000000Z
12
+ date: 2011-10-17 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: ReUse is an Internal DSL for Ruby to create roles and manage actions.
15
15
  email: isaacsanders@gmail.com