Sha256: dd82734afc5c481e53b832894278c984c3bdcb6cd00ecd55ce36352211819461

Contents?: true

Size: 480 Bytes

Versions: 12

Compression:

Stored size: 480 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

12 entries across 10 versions & 6 rubygems

Version Path
merb_datamapper-0.9.2 datamapper_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
merb-gen-0.9.3 merb_default_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
merb-gen-0.9.2 merb_generators/controller/templates/app/helpers/%controller_file_name%_helper.rb
merb-gen-0.9.3 merb_generators/controller/templates/app/helpers/%controller_file_name%_helper.rb
merb-gen-0.9.2 merb_default_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
merb_activerecord-0.9.2 activerecord_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
merb_activerecord-0.9.3 activerecord_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
merb_sequel-0.9.2 sequel_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
merb_sequel-0.9.3 sequel_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
ruboss4ruby-1.0.1 merb_generators/ruboss_resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
ruboss4ruby-1.0.2 merb_generators/ruboss_resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
ruboss_on_ruby-1.0.1 merb_generators/ruboss_resource_controller/templates/app/helpers/%controller_file_name%_helper.rb