Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #6512 - move valid notices routes inside resources block #4393

Merged
merged 1 commit into from Jul 14, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion app/controllers/katello/notices_controller.rb
Expand Up @@ -18,7 +18,6 @@ class NoticesController < Katello::ApplicationController

skip_before_filter :authorize, :require_org
before_filter :notices_authorize
before_filter :readable_by, :only => [:auto_complete_search]

helper_method :sort_column, :sort_direction

Expand Down
9 changes: 6 additions & 3 deletions config/routes.rb
Expand Up @@ -39,9 +39,12 @@
end
end

get "notices/note_count"
get "notices/get_new"
get "notices/auto_complete_search"
resources :notices, :only => [] do
collection do
get :get_new
end
end

match 'notices/:id/details' => 'notices#details', :via => :get, :as => 'notices_details'
match 'notices' => 'notices#show', :via => :get
match 'notices' => 'notices#destroy_all', :via => :delete
Expand Down