demarches-normaliennes/lib
Pierre de La Morinerie cf101d64d8 lint: add a Rubocop rule to forbid the use of unscoped
`unscoped` often has an effect broader than intended. For instance:

```
user.dossiers.unscoped.destroy_all
```

will not destroy all the user's dossier, including the hidden ones,
but **all the dossiers of all users**.

Instead, narrower unscoping should be used:

```
user.dossiers.unscope(where: :hidden).destroy_all
```

(Or even better, use the new `Dossier.with_hidden` scope).
2020-01-28 17:32:38 +01:00
..
cops lint: add a Rubocop rule to forbid the use of unscoped 2020-01-28 17:32:38 +01:00
mailers Enable Style/SymbolProc 2018-10-03 12:15:48 +02:00
prawn/fonts/liberation_serif [#3343] Remove unused font 2019-01-30 15:06:25 +01:00
tasks models: add a Dossier#with_hidden scope, and remove unscoped usages 2020-01-28 17:32:38 +01:00
templates/haml/scaffold Change controller name according to model name, add simple_form 2017-01-24 15:53:42 +01:00
percentile.rb procedure: use 90th percentile to estimate the completion delay 2018-11-08 18:29:17 +01:00