Class: Pageflow::Generators::RoutesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/pageflow/routes/routes_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_routeObject


6
7
8
9
10
# File 'lib/generators/pageflow/routes/routes_generator.rb', line 6

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