1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00
varvet--pundit/lib
Linus Marton b7b34d929d Defined Pundit::Error using compact style.
When defining the class with:

```
module Pundit
  class Error
  end
end
```

the `Error` class is mixed in to the controller when using
`include Pundit`. This can cause issues since `Error` is a
very common class name. Using the compact style:

```
class Pundit::Error
```

we avoid this, since it only creates the constant `Pundit::Error`.
2019-08-13 15:38:48 +02:00
..
generators Add type: :policy metadata to RSpec template #566 2018-11-26 09:29:29 +01:00
pundit Add frozen string literal magic comment 2019-08-12 15:02:15 +02:00
pundit.rb Defined Pundit::Error using compact style. 2019-08-13 15:38:48 +02:00