Class: Dbla::RoutesGenerator

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

Instance Method Summary collapse

Instance Method Details

#inject_dbla_routesObject



13
14
15
16
17
18
# File 'lib/generators/dbla/routes_generator.rb', line 13

def inject_dbla_routes
  # These will end up in routes.rb file in reverse order
  # we add em, since each is added at the top of file.
  # we want "root" to be FIRST for optimal url generation.
  route("Dbla::Routes.for(self, :#{controller_name})")
end