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