Use the Procedure not_archived scope
This commit is contained in:
parent
9d478609d0
commit
258a80b0d7
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class Procedure < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def self.active id
|
||||
Procedure.where(archived: false, published: true).find(id)
|
||||
not_archived.where(published: true).find(id)
|
||||
end
|
||||
|
||||
def switch_types_de_champ index_of_first_element
|
||||
|
|
Loading…
Add table
Reference in a new issue