Method: EducodeSales::MoneyPlansController#add

Defined in:
app/controllers/educode_sales/money_plans_controller.rb

#addObject



88
89
90
91
92
93
94
95
96
# File 'app/controllers/educode_sales/money_plans_controller.rb', line 88

def add
  if params[:business_id].present?
    @business = Business.find(params[:business_id])
    gon.business_id_source = @business.id
  else
    gon.business_id_source = ""
  end
  render layout: false
end