Sha256: 0eb1ff6a3b8a12703803b92183feca48c35b8b050a939dd7adaaf79c3d2724ef

Contents?: true

Size: 1.1 KB

Versions: 14

Compression:

Stored size: 1.1 KB

Contents

# This is an auto-generated file: don't edit!
# You can add your own routes in the config/routes.rb file
# which will override the routes in this file.

<%= Rails.application.class.name %>.routes.draw do
<% for subsite in subsites -%>
  <%- if subsite -%>

  <%= "namespace :#{subsite} do" %>
  <%- end -%>
  <%- for controller in controllers_for(subsite) -%>
    <%- router = router_for(subsite, controller) -%>


<%= "  #{'  ' if subsite}# Resource routes for controller #{controller.controller_path}" %>
<%= router.emit_hash(router.resources_hash, subsite ? "    " : "  ") -%>
    <%- router.owner_actions.each do |owner_hash| -%>

<%= "  #{'  ' if subsite}# Owner routes for controller #{controller.controller_path}" %>
<%= router.emit_hash(owner_hash, subsite ? "    " : "  ") -%>
    <%- end -%>
    <%- unless (routes = router.user_routes).blank? -%>

<%= "#{'  ' if subsite}  # User routes for controller #{controller.controller_path}" %>
      <%- for route in routes -%>
<%= "#{'  ' if subsite}  #{route}" %>
      <%- end -%>
    <%- end -%>
  <%- end -%>
  <%- if subsite -%>

  end
  <%- end -%>
<%- end -%>

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hobo-2.2.6 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.2.5 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.2.4 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.2.3 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.2.2 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.2.1 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.2.0 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.1.2 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.1.1 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.1.0 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.1.0.pre4 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.1.0.pre3 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.1.0.pre2 lib/generators/hobo/routes/templates/hobo_routes.rb.erb
hobo-2.1.0.pre1 lib/generators/hobo/routes/templates/hobo_routes.rb.erb