allows 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/allows.gemspec +1 -1
- data/lib/exceptions.rb +12 -10
- data/test/allows_test.rb +1 -1
- metadata +1 -1
data/allows.gemspec
CHANGED
data/lib/exceptions.rb
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
module Allows
|
2
|
+
class NoPermissionChecker < Exception
|
3
|
+
end
|
3
4
|
|
4
|
-
class NoDefinedPermissions < Exception
|
5
|
-
end
|
5
|
+
class NoDefinedPermissions < Exception
|
6
|
+
end
|
6
7
|
|
7
|
-
class NoPermissionDefinedForAction < Exception
|
8
|
-
end
|
8
|
+
class NoPermissionDefinedForAction < Exception
|
9
|
+
end
|
9
10
|
|
10
|
-
class NoInstanceVariable < Exception
|
11
|
-
end
|
11
|
+
class NoInstanceVariable < Exception
|
12
|
+
end
|
12
13
|
|
13
|
-
class Unauthorized < Exception
|
14
|
-
end
|
14
|
+
class Unauthorized < Exception
|
15
|
+
end
|
16
|
+
end
|
data/test/allows_test.rb
CHANGED