Sha256: e79db70a78f5a0c72802b80b27c0c784f28abc89db1adc87e1fa04fc2ba9153e

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 Bytes

Contents

module GotFixed
  module Generators
    class InstallGenerator < ::Rails::Generators::Base

      desc "Install GotFixed into your app (config + route)"

      source_root File.expand_path("../templates", __FILE__)

      def copy_default_config
        copy_file "got_fixed.yml", "config/got_fixed.yml"
      end

      def add_route
        route "mount GotFixed::Engine => '/got_fixed'"
      end

      def copy_views
        directory "views", "app/views"
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
got_fixed-0.1.0 lib/generators/got_fixed/install/install_generator.rb
got_fixed-0.0.6 lib/generators/got_fixed/install/install_generator.rb
got_fixed-0.0.5 lib/generators/got_fixed/install/install_generator.rb
got_fixed-0.0.4 lib/generators/got_fixed/install/install_generator.rb