Sha256: 9f512bc12bb5871d5c3b833e337900662e01b0c4fcf699b5c45dbe5b9e644b5a
Contents?: true
Size: 425 Bytes
Versions: 5
Compression:
Stored size: 425 Bytes
Contents
require_dependency "avo/application_controller" module Avo class HomeController < ApplicationController def index @page_title = "Get started" if Avo.configuration.home_path.present? redirect_to Avo.configuration.home_path elsif !Rails.env.development? redirect_to resources_path Avo::App.get_resources.min_by { |resource| resource.route_key }.model_class end end end end
Version data entries
5 entries across 5 versions & 1 rubygems