inboxes 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,10 +7,11 @@ module Inboxes
7
7
  def initialize(user)
8
8
  # Discussion
9
9
  # raise "Registered!"
10
-
11
- can [:index, :create], Discussion
12
- can :read, Discussion do |discussion|
13
- discussion.can_participate?(user)
10
+ if user
11
+ can [:index, :create], Discussion
12
+ can :read, Discussion do |discussion|
13
+ discussion.can_participate?(user)
14
+ end
14
15
  end
15
16
 
16
17
  # Message
@@ -1,3 +1,3 @@
1
1
  module Inboxes
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inboxes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kir Shatrov