Sha256: 250990160f148df599a069a43eb498ec78def1c1f7ac49c677cd1cd8db65c503
Contents?: true
Size: 320 Bytes
Versions: 11
Compression:
Stored size: 320 Bytes
Contents
class <%= controller_class_name %>Controller < InheritedResources::Base <% if options[:singleton] -%> defaults :singleton => true <% end -%> private def <%= singular_name %>_params params.require(:<%= singular_name %>).permit(<%= attributes_names.map{ |a_name| ":#{a_name}" }.join(", ") %>) end end
Version data entries
11 entries across 11 versions & 2 rubygems