You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: install_generator.rb
    path of file: ./repos/Faalis/lib/generators/faalis
    
    the code of the file until where you have to start completion: module Faalis
  module Generators
    # Generator responsible for `install` generator
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      desc 'Copy all the necessary files to use Faalis'
      class_option :orm

      def copy_migrations
        rake('faalis:install:migrations') unless options[:mongoid]
      end

      def install_model_discovery
        rake 'model_discovery_engine:install:migrations'
      end

      def copy_init_files
        template 'devise.rb', 'config/initializers/devise.rb'
        template 'faalis.rb', 'config/initializers/faalis.rb'
        template 'api_controller.rb', 'app/controllers/api_controller.rb'
        template 'dashboard_controller.rb', 'app/controllers/dashboard/application_controller.rb'
        template 'policy/application_policy.rb', 'app/policies/application_policy.rb'
      end

      def patch_seed
        prepend_to_file 'db/seeds.rb' do
          "Faalis::Engine.load_seed\n"
        end
      end

      def copy_js_manifest
        empty_directory 'app/assets/javascripts/dashboard'
        directory 'javascripts', 'app/assets/javascripts/dashboard'
      end


      def install_formtastic
        generate 'formtastic:
    
      def install_routes
         route "end\n"
         route '  # Your dashboard routes goes here.'
         route "in_dashboard do"

         route "end\n"
         route '  # Your API routes goes here.'
         route 'api_routes do'

         route "mount Faalis::Engine => '/'\n"
      end

      def assets_manifests_initializer
        initializer 'faalis_assets.rb' do
          'Rails.application.config.assets.precompile += %w( faalis/simple.js )'
        end
      end

      def patch_application_controller
        inject_into_class "app/controllers/application_controller.rb", ApplicationController, "  extend Faalis::I18n::Locale\n"
      end

      def add_gems
        #gem 'jquery-turbolinks'

        inside Rails.root do
          run 'bundle update'
        end
      end

      def append_assets_to_compile
        append_to_file 'config/initializers/assets.rb' do
          "Rails.application.config.assets.precompile += %w( dashboard/rtl/application.css dashboard/ltr/application.css)"
        end
      end

      def patch_formtastic
        append_to_file 'config/initializers/formtastic.rb' do
          'Formtastic::Helpers::FormHelper.builder = FormtasticBootstrap::FormBuilder'
        end
      end

      def show_readme
        readme 'README' if behavior == :invoke
      end

      private

      def angularjs_app_path
        path = Faalis::Engine.dashboard_js_manifest.split('/')[0..-2].join('/')
        "app/assets/javascripts/#{path}/"
      end
    end
  end