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