class Hobo::RoutesGenerator

Public Instance Methods

generate_routes() click to toggle source
# File lib/generators/hobo/routes/routes_generator.rb, line 13
def generate_routes
  Hobo::Routes.reset_linkables
  h = Hobo::Engine.config.hobo
  template_name = 'hobo_routes.rb.erb'
  if h.read_only_file_system
    # just fill the @linkable_keys without writing any file
    eval_template template_name
  else
    template template_name, h.routes_path
  end
end

Public Class Methods

banner() click to toggle source