Skip to content

Commit

Permalink
[bugfix] Fix admin posts by state routing
Browse files Browse the repository at this point in the history
- Revert back change from constraint to filter on posts by state route
  • Loading branch information
mumoc committed Apr 2, 2015
1 parent adfbdd4 commit 9f8684a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

get 'admin/posts/:state',
to: 'crowdblog/admin/posts#index',
filter: /finished|reviewed/,
constraints: { state: /finished|reviewed/ },
as: :admin_posts_by_state

mount Crowdblog::Engine => '/'
Expand Down

0 comments on commit 9f8684a

Please sign in to comment.