Sha256: a258e4297e318ba463853da4e126f16294a8bc7cdba23f0c95f2cf289422682a

Contents?: true

Size: 229 Bytes

Versions: 3

Compression:

Stored size: 229 Bytes

Contents

module Popolo
  class OrganizationsController < PopoloController
    inherit_resources
    respond_to :html, :json
    actions :index, :show

    def index
      @organizations = Organization.roots
      index!
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
popolo-0.1.1 app/controllers/popolo/organizations_controller.rb
popolo-0.1.0 app/controllers/popolo/organizations_controller.rb
popolo-0.0.3 app/controllers/popolo/organizations_controller.rb