Ember temp commit
This commit is contained in:
@@ -19,9 +19,10 @@ module Suppliers
|
||||
# GET /sections/1.json
|
||||
def show
|
||||
@section = Section.find_by_supplier_id_and_id!(current_supplier.id, params[:id])
|
||||
@tables = @section.tables_with_active_list_id
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.html { render action: 'tables_view' }# show.html.erb
|
||||
format.json { render json: @section }
|
||||
end
|
||||
end
|
||||
@@ -103,7 +104,7 @@ module Suppliers
|
||||
# GET /sections/1/tables_view.json
|
||||
def tables_view
|
||||
@section = Section.find_by_supplier_id_and_id!(current_supplier.id, params[:id])
|
||||
@tables = Table.enrich_active_list_id(@section.tables)
|
||||
@tables = @section.tables_with_active_list_id
|
||||
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
|
||||
Reference in New Issue
Block a user