Sha256: c4344ebcbaea1f2251ab7d37975865b3fd42965de994f442f4e8c8cef49873c9

Contents?: true

Size: 279 Bytes

Versions: 2

Compression:

Stored size: 279 Bytes

Contents

module Adminpanel
  class <%= pluralized_name.capitalize %>Controller < Adminpanel::ApplicationController

    private
      def <%= lower_singularized_name %>_params
        params.require(:<%= lower_singularized_name%>).permit(<%= symbolized_attributes %>)
      end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adminpanel-2.0.1 lib/generators/adminpanel/resource/templates/controller.rb
adminpanel-2.0.0 lib/generators/adminpanel/resource/templates/controller.rb