Sha256: 5a2033cbc74f280b504dd12945a292b8151aa57cb9715c9537508d8e9008a3a6

Contents?: true

Size: 303 Bytes

Versions: 9

Compression:

Stored size: 303 Bytes

Contents

require_dependency 'avo/application_controller'

module Avo
  class HomeController < ApplicationController
    def index
      unless Rails.env.development?
        redirect_to resources_path Avo::App.get_resources.sort_by { |resource| resource.route_key }.first.model_class
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
avo-0.5.0.beta9 app/controllers/avo/home_controller.rb
avo-0.5.0.beta8 app/controllers/avo/home_controller.rb
avo-0.5.0.beta7 app/controllers/avo/home_controller.rb
avo-0.5.0.beta6 app/controllers/avo/home_controller.rb
avo-0.5.0.beta5 app/controllers/avo/home_controller.rb
avo-0.5.0.beta4 app/controllers/avo/home_controller.rb
avo-0.5.0.beta3 app/controllers/avo/home_controller.rb
avo-0.5.0.beta2 app/controllers/avo/home_controller.rb
avo-0.5.0.beta1 app/controllers/avo/home_controller.rb