Method: ArCategoryControl#new_record

Defined in:
app/controls/ar_category_control.rb

#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