Sha256: 53befb713e9d00c38c05b49d935615e9b82e0d8497d35a2907b88fdefb69ec05

Contents?: true

Size: 465 Bytes

Versions: 9

Compression:

Stored size: 465 Bytes

Contents

module YariiEditor
  class DashboardController < ApplicationController
    before_action :pull_if_needed, except: [:list]

    def index
      @custom_lists = []
    end

    def list
      model_details = current_site.content_models[params[:model_type]]

      list = render_to_string(formats: [:html], partial: 'yarii_editor/dashboard/inner_list', locals: {model_type: params[:model_type], model_details: model_details})

      render html: list
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
yarii-editor-0.4.8 app/controllers/yarii_editor/dashboard_controller.rb
yarii-editor-0.4.7 app/controllers/yarii_editor/dashboard_controller.rb
yarii-editor-0.4.6 app/controllers/yarii_editor/dashboard_controller.rb
yarii-editor-0.4.5 app/controllers/yarii_editor/dashboard_controller.rb
yarii-editor-0.4.4 app/controllers/yarii_editor/dashboard_controller.rb
yarii-editor-0.4.3 app/controllers/yarii_editor/dashboard_controller.rb
yarii-editor-0.4.2 app/controllers/yarii_editor/dashboard_controller.rb
yarii-editor-0.4.1 app/controllers/yarii_editor/dashboard_controller.rb
yarii-editor-0.4.0 app/controllers/yarii_editor/dashboard_controller.rb