Sha256: eda669a13b461cb7565e3b88f82e9846aee109c51344e4c12a4d415d1316d7c8

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

module Routingo
  module Generators
    class Install < Rails::Generators::Base

      desc "Creates active_admin initializer, routes and copy locale files to your application."

      def insert_path
        insert_into_file "config/application.rb", :after => "class Application < Rails::Application\n" do
          "    config.paths['config/routes.rb'].concat(Dir[Rails.root.join('config/routes/*.rb')])\n"
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
routingo-0.1.0 lib/generators/routingo/install_generator.rb