Sha256: 60cb768cd9e43122ca3011a2985b7de433c8bd861cdd2b7d64b4f9e13d979837
Contents?: true
Size: 303 Bytes
Versions: 1
Compression:
Stored size: 303 Bytes
Contents
class <%= @name.camelize %>Decorator < ApplicationDecorator #decorates Namespaced::Model # Return concatenated full name def name <%= @name %>.attribute + " " + <%= @name %>.attribute end # Return edit path def edit_link link_to :Edit, edit_<%= @name%>_path(<%= @name %>) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
myrails-7.0.0 | lib/myrails/templates/rails/app/decorators/decoration.rb |