Class: CriteriaOperator::UiComponent::CriteriaEditorCell

Inherits:
BaseCell
  • Object
show all
Defined in:
app/cells/criteria_operator/ui_component/criteria_editor_cell.rb

Instance Method Summary collapse

Instance Method Details

#choose_template(options = {}) ⇒ Object



11
12
13
14
15
16
17
# File 'app/cells/criteria_operator/ui_component/criteria_editor_cell.rb', line 11

def choose_template(options = {})
  if model.kind_of? BinaryOperator
    ExpressionCell.call(model).call(:show, options)
  else
    GroupCell.call(model).call(:show, options)
  end
end

#showObject



7
8
9
# File 'app/cells/criteria_operator/ui_component/criteria_editor_cell.rb', line 7

def show
  render
end