app/controllers/management/page_steps_controller.rb
def build_current_page_state
    # Update the page with the attributes saved on the session
    @page.assign_attributes session[:page][@page_id] if session[:page][@page_id]
    if params[:site_page] && page_params.to_h.except(:dataset_setting, :dashboard_setting, :tags)
      @page.assign_attributes page_params.to_h.except(:dataset_setting, :dashboard_setting, :tags)
    end

    @page.tags_attributes = session[:tags_attributes]["#{@page_id}"] if session[:tags_attributes]["#{@page_id}"]
  end
# Builds the current page state based on the database, session and params
Builds the current page state based on the database, session and params
Builds the current page state based on the database session and params
def build_current_page_state
    @page.assign_attributes session[:page][@page_id] if session[:page][@page_id]
    if params[:site_page] && page_params.to_h.except(:dataset_setting, :dashboard_setting, :tags)
      @page.assign_attributes page_params.to_h.except(:dataset_setting, :dashboard_setting, :tags)
    end
    @page.tags_attributes = session[:tags_attributes]["#{@page_id}"] if session[:tags_attributes]["#{@page_id}"]
  end
def build_current_page_state @page . assign_attributes session [ :page ] [ @page_id ] if session [ :page ] [ @page_id ] if params [ :site_page ] && page_params . to_h . except ( :dataset_setting , :dashboard_setting , :tags ) @page . assign_attributes page_params . to_h . except ( :dataset_setting , :dashboard_setting , :tags ) end @page . tags_attributes = session [ :tags_attributes ] [ "#{@page_id}" ] if session [ :tags_attributes ] [ "#{@page_id}" ] end
Builds the current page state based on the database, session and params
Builds the current page state based on the database session and params
# Update the page with the attributes saved on the session