class ShopifyApp::Generators::HomeControllerGenerator
def add_home_index_route
def add_home_index_route route("root :to => 'home#index'") end
def authenticated_home_controller_required?
def authenticated_home_controller_required? !embedded? || !embedded_app? end
def create_home_controller
def create_home_controller template(home_controller_template, "app/controllers/home_controller.rb") end
def create_home_index_view
def create_home_index_view template("index.html.erb", "app/views/home/index.html.erb") end
def create_products_controller
def create_products_controller generate("shopify_app:products_controller") if embedded? || embedded_app? end
def embedded?
def embedded? options["embedded"] == "true" end
def embedded_app?
def embedded_app? ShopifyApp.configuration.embedded_app? end
def home_controller_template
def home_controller_template return "unauthenticated_home_controller.rb" unless authenticated_home_controller_required? "home_controller.rb" end