cancant 0.0.1.beta1 → 0.0.1.beta2

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.
Files changed (2) hide show
  1. data/lib/cancan/ability.rb +4 -0
  2. metadata +4 -4
@@ -128,6 +128,10 @@ module CanCan
128
128
  def can(action = nil, subject = nil, conditions = nil, &block)
129
129
  rules << Rule.new(true, action, subject, conditions, block)
130
130
  end
131
+
132
+ def cant(action = nil, subject = nil, conditions = nil, &block)
133
+ rules << Rule.new(false, action, subject, conditions, block)
134
+ end
131
135
 
132
136
  # Defines an ability which cannot be done. Accepts the same arguments as "can".
133
137
  #
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cancant
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196393
4
+ hash: 62196399
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 1
10
10
  - beta
11
- - 1
12
- version: 0.0.1.beta1
11
+ - 2
12
+ version: 0.0.1.beta2
13
13
  platform: ruby
14
14
  authors:
15
15
  - Ryan Bates, Matthew Burket
@@ -84,7 +84,7 @@ dependencies:
84
84
  version: 0.1.4
85
85
  type: :development
86
86
  version_requirements: *id004
87
- description: Simple authorization solution for Rails which is decoupled from user roles. All permissions are stored in a single location.
87
+ description: Simple authorization solution for Rails which is decoupled from user roles. All permissions are stored in a single location. This project is based off of Ryan Bates's CanCan Gem.
88
88
  email: support@AssignItApp.com
89
89
  executables: []
90
90