Sha256: 8d595ae4dca1a277729231886875bc146a84ca993271949da7d86cd1b93a750b
Contents?: true
Size: 391 Bytes
Versions: 10
Compression:
Stored size: 391 Bytes
Contents
module Adminpanel class <%= pluralized_name.capitalize %>Controller < Adminpanel::ApplicationController private def <%= resource_name %>_params params.require(:<%= resource_name %>).permit( <%= indent("{ #{gallery_name.pluralize}_attributes: [:id, :file, :_destroy] }", 10) + ',' if has_gallery? %> <%= indent(symbolized_attributes, 10) %> ) end end end
Version data entries
10 entries across 10 versions & 1 rubygems