Sha256: 448b73d7cab3d3a124def1c605216bbedbbba7f773ededf681414b43d3a8beba

Contents?: true

Size: 378 Bytes

Versions: 16

Compression:

Stored size: 378 Bytes

Contents

<% controller_template = ERB.new(File.read(File.join(File.dirname(__FILE__), '/controller.erb')), trim_mode: '-').result(binding).strip -%>
<% if @module_name.present? -%>
module <%= @module_name %>
<% controller_template.split("\n").each do |line| -%>
<% if line.blank? -%>

<% else -%>
  <%= line %>
<% end -%>
<% end -%>
end
<% else -%>
<%= controller_template %>
<% end -%>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rails_ops-1.7.0 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.6.0 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.6.0.rc1 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.6.0.rc0 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.5.8 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.5.7 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.5.6 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.5.5 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.5.4 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.5.0 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.4.8 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.4.7 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.4.6 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.4.5 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.4.4 lib/generators/operation/templates/controller_wrapper.erb
rails_ops-1.4.3 lib/generators/operation/templates/controller_wrapper.erb