Sha256: c4e060f8f055f8347bbaf1224aa243ad7b03449b4123f74363334308acdf0270

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

<% counter = 1 -%>
module Merb
<% controller_modules.each_with_index do |mod, i| -%>
<%= "  " * i %>module <%= mod %>
<% counter = i -%>
<% end -%>
<% counter = counter == 0 ? 0 : (counter + 1) -%>
<%= "  " * counter %>module <%= controller_class_name %>Helper

<%= "  " * counter %>end
<% counter = counter == 0 ? 0 : (counter - 1) -%>
<% controller_modules.reverse.each_with_index do |mod, i| -%>
<%= "  " * counter %>end # <%= mod %>
<% counter = counter - 1 -%>
<% end -%>
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
merb_datamapper-0.9.3 datamapper_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb