Sha256: e0e418e6302665e332001e6e3408d37660a3d2d419b7f92c39bbe026efdc6783

Contents?: true

Size: 642 Bytes

Versions: 22

Compression:

Stored size: 642 Bytes

Contents

module Katello
  class OrganizationsController < Katello::ApplicationController
    before_filter :search_filter, :only => [:auto_complete_search]

    def rules
      {
        :auto_complete_search => lambda { Organization.any_readable? },
        :default_label => lambda { Organization.creatable? }
      }
    end

    def section_id
      'operations'
    end

    protected

    def search_filter
      @filter = {:organization_id => current_organization}
    end

    def controller_display_name
      return 'organization'
    end

    private

    def default_notify_options
      super.merge :organization => nil
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
katello-3.1.0.1 app/controllers/katello/organizations_controller.rb
katello-3.1.0 app/controllers/katello/organizations_controller.rb
katello-3.1.0.rc2.1 app/controllers/katello/organizations_controller.rb
katello-3.0.2 app/controllers/katello/organizations_controller.rb
katello-2.4.5 app/controllers/katello/organizations_controller.rb
katello-3.1.0.rc1 app/controllers/katello/organizations_controller.rb
katello-3.0.1 app/controllers/katello/organizations_controller.rb
katello-2.4.4 app/controllers/katello/organizations_controller.rb
katello-3.0.0 app/controllers/katello/organizations_controller.rb
katello-2.4.3 app/controllers/katello/organizations_controller.rb
katello-3.0.0.rc7 app/controllers/katello/organizations_controller.rb
katello-3.0.0.rc5 app/controllers/katello/organizations_controller.rb
katello-2.4.2 app/controllers/katello/organizations_controller.rb
katello-3.0.0.rc4 app/controllers/katello/organizations_controller.rb
katello-3.0.0.rc3 app/controllers/katello/organizations_controller.rb
katello-3.0.0.rc2 app/controllers/katello/organizations_controller.rb
katello-3.0.0.rc1 app/controllers/katello/organizations_controller.rb
katello-2.4.1 app/controllers/katello/organizations_controller.rb
katello-2.4.0 app/controllers/katello/organizations_controller.rb
katello-2.4.0.rc3 app/controllers/katello/organizations_controller.rb