Sha256: 69524bc2c99f7c05ee57982fc1e8cd2f6dda6b6cfb829ed6d45fe8460253b6b0
Contents?: true
Size: 640 Bytes
Versions: 8
Compression:
Stored size: 640 Bytes
Contents
# frozen_string_literal: true require 'rails/generators/base' module ShopifyApp module Generators class HomeControllerGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def create_home_controller template('home_controller.rb', 'app/controllers/home_controller.rb') end def create_home_index_view copy_file('index.html.erb', 'app/views/home/index.html.erb') end def add_home_index_route route("root :to => 'home#index'") end def embedded_app? ShopifyApp.configuration.embedded_app? end end end end
Version data entries
8 entries across 8 versions & 1 rubygems