Sha256: 8d546414e56098b773f0328e82a8d257cf4247bd8f70716a5b98f868926bafbc
Contents?: true
Size: 272 Bytes
Versions: 1
Compression:
Stored size: 272 Bytes
Contents
module <%= controller_class_name %>Helper LOCALE = {} <% for attribute in attributes %> LOCALE[:<%= attribute.name.underscore.to_sym %>] = '<%= attribute.name.humanize%>' <% end %> def translate(sym) LOCALE[sym] || sym end alias_method :t, :translate end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
korin-resource_controller-0.5.3 | generators/scaffold_resource/templates/helper.rb |