Sha256: 98958da109b11fc7c2564ea8bb338d133c22456d795d671801bc44ff18df6d84
Contents?: true
Size: 378 Bytes
Versions: 5
Compression:
Stored size: 378 Bytes
Contents
class <%= @class_name %>::Routes def self.routings Rails.application.routes.draw do scope "rails_view_component/<%= @file_name %>", module: :<%= @file_name %> do <% @args.map{|arg|arg.split(":")}.each do |name,method| %> <%= method || "post" %> "<%= name %>" => "<%= @file_name %>#<%= name %>" <% end %> end end end end
Version data entries
5 entries across 5 versions & 1 rubygems