Sha256: 7f4ecb363b750c6df835ae1ff6e5914730853734d5abd1829091e7001389921b

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

module Formal
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc "Creates the Formal initializer at config/initializers/formal.rb"

      def self.source_root
        @source_root ||= File.expand_path("../templates", __FILE__)
      end

      def create_initializer_file
        template "initializer.rb", "config/initializers/formal.rb"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formal-1.0.1 lib/rails/generators/formal/install/install_generator.rb