Sha256: 55173b118642d7d317996448569d1da73d19559766b820830b61d582a45826b1

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

<% module_namespacing do -%>
module Admin
  class <%= controller_class_name %>Controller < AdminController

    defaults resource_class: <%= model_class_name %>

    private

      def <%= singular_table_name %>_params
        params.require(:<%= singular_table_name %>).permit!
      end
  end
end
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
express_admin-1.3.0 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.2.1 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.2.0 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.1.0 lib/generators/express_admin/scaffold/templates/controller/controller.rb