Enable some Rails cops
This commit is contained in:
parent
da3d9d403a
commit
0a9f442260
83 changed files with 180 additions and 178 deletions
|
@ -1,5 +1,5 @@
|
|||
class PurgeDraftDossier < ActiveRecord::Migration
|
||||
class Dossier < ActiveRecord::Base
|
||||
class Dossier < ApplicationRecord
|
||||
BROUILLON = %w(draft)
|
||||
|
||||
def brouillon?
|
||||
|
@ -7,11 +7,11 @@ class PurgeDraftDossier < ActiveRecord::Migration
|
|||
end
|
||||
end
|
||||
|
||||
class Commentaire < ActiveRecord::Base
|
||||
class Commentaire < ApplicationRecord
|
||||
belongs_to :dossier
|
||||
end
|
||||
|
||||
class Cerfa < ActiveRecord::Base
|
||||
class Cerfa < ApplicationRecord
|
||||
belongs_to :dossier
|
||||
belongs_to :user
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue