Sha256: 581b6918d13acfb2390383bec552e36cc8010783216214f59c8a6b5d3a99fe29

Contents?: true

Size: 279 Bytes

Versions: 8

Compression:

Stored size: 279 Bytes

Contents

<% module_namespacing do -%>
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 -%>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
express_admin-1.4.5 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.4.4 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.4.3 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.4.2 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.4.1 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.4.0 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.3.2 lib/generators/express_admin/scaffold/templates/controller/controller.rb
express_admin-1.3.1 lib/generators/express_admin/scaffold/templates/controller/controller.rb