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

Version Path
adminpanel-2.2.5 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb
adminpanel-2.2.4 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb
adminpanel-2.2.3 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb
adminpanel-2.2.2 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb
adminpanel-2.2.1 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb
adminpanel-2.2.0 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb
adminpanel-2.1.7 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb
adminpanel-2.1.6 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb
adminpanel-2.1.5 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb
adminpanel-2.1.3 lib/generators/adminpanel/resource/templates/adminpanel_controller_template.rb