Sha256: 3ec307bad55293f22d372d292cb591db876ade8ef4ecafcb62d1b6fa58c9b590

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

module Outpost
  class PeopleController < Outpost::ResourceController
    outpost_controller model: Person

    define_list do |l|
      l.default_order     = "name"
      l.default_sort_mode = "desc"
      l.per_page          = 25

      l.column :name
      l.column :email
      l.column :location
      l.column :age
    end

    private

    def form_params
      params.require(model.singular_route_key)
        .permit(:name, :email, :location, :age)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
outpost-cms-0.0.3 spec/internal/app/controllers/outpost/people_controller.rb