add upper_tdcs to condition_form
This commit is contained in:
parent
7e1963865e
commit
8efd305256
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ module Administrateurs
|
||||||
end
|
end
|
||||||
|
|
||||||
def condition_form
|
def condition_form
|
||||||
ConditionForm.new(condition_params)
|
ConditionForm.new(condition_params.merge({ upper_tdcs: @upper_tdcs }))
|
||||||
end
|
end
|
||||||
|
|
||||||
def retrieve_coordinate_and_uppers
|
def retrieve_coordinate_and_uppers
|
||||||
|
|
|
@ -2,7 +2,7 @@ class ConditionForm
|
||||||
include ActiveModel::Model
|
include ActiveModel::Model
|
||||||
include Logic
|
include Logic
|
||||||
|
|
||||||
attr_accessor :top_operator_name, :rows
|
attr_accessor :top_operator_name, :rows, :upper_tdcs
|
||||||
|
|
||||||
def to_condition
|
def to_condition
|
||||||
case sub_conditions.count
|
case sub_conditions.count
|
||||||
|
|
Loading…
Reference in a new issue