class Dbla::RoutesGenerator

Public Instance Methods

inject_dbla_routes() click to toggle source
# 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