Sha256: a438956a2e5b4dcd5d5aa06763df385d8b3fc846c0ca13cfac9a13211e4a8ddb

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

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

    desc "Install Jlog engine"

    def mount_engine
      puts "Mounting Jlog engine at /jlog in config/routes.rb"
      insert_into_file("config/routes.rb", :after => /routes\.draw\sdo\n/) do
        %Q{\n  mount Jlog::Engine, at: '/jlog'\n}
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jlog-rails-0.0.1 lib/generators/jlog/install_generator.rb