Sha256: 6a783b405d607510be42650e40d75c42ea1220cb0365ae7b070f95ecc388642e

Contents?: true

Size: 426 Bytes

Versions: 14

Compression:

Stored size: 426 Bytes

Contents

require_dependency "avo/application_controller"

module Avo
  class HomeController < ApplicationController
    def index
      if Avo.configuration.home_path.present?
        redirect_to Avo.configuration.home_path
      elsif !Rails.env.development?
        @page_title = "Get started"
        redirect_to resources_path Avo::App.get_resources.min_by { |resource| resource.route_key }.model_class
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
avo-1.4.0.pre.1 app/controllers/avo/home_controller.rb
avo-1.3.5 app/controllers/avo/home_controller.rb
avo-1.3.5.pre.1 app/controllers/avo/home_controller.rb
avo-1.3.4 app/controllers/avo/home_controller.rb
avo-1.3.3 app/controllers/avo/home_controller.rb
avo-1.3.2 app/controllers/avo/home_controller.rb
avo-1.3.1 app/controllers/avo/home_controller.rb
avo-1.3.0 app/controllers/avo/home_controller.rb
avo-1.2.11.pre.4 app/controllers/avo/home_controller.rb
avo-1.2.11.pre.3 app/controllers/avo/home_controller.rb
avo-1.2.11.pre.2 app/controllers/avo/home_controller.rb
avo-1.2.11.pre.1 app/controllers/avo/home_controller.rb
avo-1.2.10 app/controllers/avo/home_controller.rb
avo-1.2.9 app/controllers/avo/home_controller.rb