Sha256: 685d3478dcea5c8ce893c461fce04a407f4ac86f30c7ad1334b2e0319b48bd2f

Contents?: true

Size: 418 Bytes

Versions: 2

Compression:

Stored size: 418 Bytes

Contents

<% if namespaced? -%>
require_dependency "<%= namespaced_path %>/application_controller"

<% end -%>
<% module_namespacing do -%>
class <%= class_name %>Controller < ApplicationController
<% actions.each do |action| -%>
  def <%= action %>
  	<%= generate_action_code(action, options.ext_index_nav?, options.ext_form_submit?) %>
  end
<%= "\n"  -%>
<% end -%>
	private
	<%= generate_strong_params_def %>
end
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
controller_scaffolding-0.1.5 lib/templates/rails/controller/controller.rb
controller_scaffolding-0.0.52 lib/templates/rails/controller/controller.rb