[#2179] Simplify id_compatible?
This commit is contained in:
parent
b3cb06b7e5
commit
a42c4ade4c
1 changed files with 4 additions and 6 deletions
|
@ -31,13 +31,11 @@ class DossierSearchService
|
|||
end
|
||||
|
||||
def self.id_compatible?(number)
|
||||
begin
|
||||
ActiveRecord::Type::Integer.new.serialize(number)
|
||||
true
|
||||
rescue ActiveModel::RangeError
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
def self.dossier_by_full_text_for_gestionnaire(search_terms, gestionnaire)
|
||||
Search.new(
|
||||
|
|
Loading…
Reference in a new issue