Module: ArCategoryControl

Defined in:
app/controls/ar_category_control.rb

Overview

Controls for ar_categories table.

Instance Method Summary collapse

Instance Method Details

#new_recordObject

Called when new empty record is created



32
33
34
35
36
37
# File 'app/controls/ar_category_control.rb', line 32

def new_record
  return if params[:p_parent].blank?

  parent = ArCategory.find(params[:p_parent])
  @record.ar_site_id = parent.ar_site_id
end