Sha256: 900dbc874beda767c961bbad9ff083dc631feb5ce873029913cb494cf15d11eb

Contents?: true

Size: 243 Bytes

Versions: 3

Compression:

Stored size: 243 Bytes

Contents

Rails.application.routes.draw do
  scope "havior/<%= @file_path %>", module: "<%= @file_path %>" do
    <% @actions.each do |name, method| %>
    <%= method || "get" %> "<%= name %>" => "<%= @file_name%>#<%= name %>"
    <% end %>  
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
havior-0.1.2 lib/generators/havior/templates/haviors/routes.rb.erb
havior-0.1.1 lib/generators/havior/templates/haviors/routes.rb.erb
havior-0.1.0 lib/generators/havior/templates/haviors/routes.rb.erb