Sha256: cdd3c9663cb7bf9bfbb92f35e8d4d6867b84d1623b3d3b7fcf38840c54d456d8

Contents?: true

Size: 223 Bytes

Versions: 7

Compression:

Stored size: 223 Bytes

Contents

module Admin
  class <%= klass_name %>Controller < ResourcesController



    private 
      def <%=model_name%>_params
        
        params.require(:<%=model_name%>).permit(<%= columns.join(",") %>)
      end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
unknown_admin-0.1.5 lib/generators/unknown_admin/controller/templates/standard_controller.rb
unknown_admin-0.1.4 lib/generators/unknown_admin/controller/templates/standard_controller.rb
unknown_admin-0.1.3 lib/generators/unknown_admin/controller/templates/standard_controller.rb
unknown_admin-0.1.2 lib/generators/unknown_admin/controller/templates/standard_controller.rb
unknown_admin-0.1.1 lib/generators/unknown_admin/controller/templates/standard_controller.rb
unknown_admin-0.1.0 lib/generators/unknown_admin/controller/templates/standard_controller.rb
unknown_admin-0.0.1 lib/generators/unknown_admin/controller/templates/standard_controller.rb