Sha256: aafbb78895f849c65be9b626508651ed20a75ca1e34e5bb35831945cdb0cc4e9

Contents?: true

Size: 481 Bytes

Versions: 63

Compression:

Stored size: 481 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"
        resource = Avo::App.resources.min_by { |resource| resource.model_key }
        redirect_to resources_path(resource: resource)
      end
    end

    def failed_to_load
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
avo-1.25.2 app/controllers/avo/home_controller.rb
avo-2.7.0 app/controllers/avo/home_controller.rb
avo-2.6.1.pre.2 app/controllers/avo/home_controller.rb
avo-2.6.1.pre.1 app/controllers/avo/home_controller.rb
avo-2.6.0 app/controllers/avo/home_controller.rb
avo-2.5.2.pre.7 app/controllers/avo/home_controller.rb
avo-2.5.2.pre.6 app/controllers/avo/home_controller.rb
avo-2.5.2.pre.5 app/controllers/avo/home_controller.rb
avo-2.5.2.pre.4 app/controllers/avo/home_controller.rb
avo-2.5.2.pre.3 app/controllers/avo/home_controller.rb
avo-2.5.2.pre.2 app/controllers/avo/home_controller.rb
avo-2.5.2.pre.1 app/controllers/avo/home_controller.rb
avo-2.5.1 app/controllers/avo/home_controller.rb
avo-2.5.0 app/controllers/avo/home_controller.rb
avo-2.4.1 app/controllers/avo/home_controller.rb
avo-2.4.0 app/controllers/avo/home_controller.rb
avo-2.3.1.pre.6 app/controllers/avo/home_controller.rb
avo-2.3.1.pre.5 app/controllers/avo/home_controller.rb
avo-2.3.1.pre.4 app/controllers/avo/home_controller.rb
avo-2.3.1.pre.3 app/controllers/avo/home_controller.rb