perf(champ): check condition.present? without json deserializationl, -6ms
This commit is contained in:
parent
73b4ee64e6
commit
f8ee6386b9
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class Champ < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def conditional?
|
def conditional?
|
||||||
type_de_champ.condition.present?
|
type_de_champ.read_attribute_before_type_cast('condition').present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def visible?
|
def visible?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue