class ShopifyApp::Generators::ControllersGenerator
def controllers
def controllers files_within_root(".", "app/controllers/shopify_app/*.*") end
def create_controllers
def create_controllers controllers.each do |controller| copy_file(controller) end end
def files_within_root(prefix, glob)
def files_within_root(prefix, glob) root = "#{self.class.source_root}/#{prefix}" Dir["#{root}/#{glob}"].sort.map do |full_path| full_path.sub(root, ".").gsub("/./", "/") end end