config/routes.rb in phcpress-3.7.8 vs config/routes.rb in phcpress-3.7.9
- old
+ new
@@ -1,16 +1,16 @@
Phcpress::Engine.routes.draw do
# Blog Routes
namespace :blog do
- resources :posts
+ resources :posts, class_name: 'Phcpress::News::Post'
end
# News Routes
namespace :news do
- resources :posts
+ resources :posts, class_name: 'Phcpress::Blog::Post'
end
# Categories
- resources :categories
+ resources :categories, class_name: 'Phcpress::Category'
end