Sha256: 1fbb73d9c3168dbf036d8f00993ed2ca09a62ad6c8f8758d0466aa891c3db473

Contents?: true

Size: 368 Bytes

Versions: 17

Compression:

Stored size: 368 Bytes

Contents

require 'rails/generators'

module Pageflow
  module Generators
    class RoutesGenerator < Rails::Generators::Base
      desc "Injects the pageflow mount call into config/routes.rb"

      def add_route
        inject_into_file 'config/routes.rb', after: "  ActiveAdmin.routes(self)\n" do
          "  Pageflow.routes(self)\n"
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pageflow-12.0.4 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.3 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.2 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.1 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.0 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.0.rc7 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.0.rc6 lib/generators/pageflow/routes/routes_generator.rb
pageflow-0.11.4 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.0.rc5 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.0.rc4 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.0.rc3 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.0.rc2 lib/generators/pageflow/routes/routes_generator.rb
pageflow-12.0.0.rc1 lib/generators/pageflow/routes/routes_generator.rb
pageflow-0.11.3 lib/generators/pageflow/routes/routes_generator.rb
pageflow-0.11.2 lib/generators/pageflow/routes/routes_generator.rb
pageflow-0.11.1 lib/generators/pageflow/routes/routes_generator.rb
pageflow-0.11.0 lib/generators/pageflow/routes/routes_generator.rb