Class: PostManager::ArticleHandler
- Inherits:
-
PostManager
- Object
- PostManager
- PostManager::ArticleHandler
- Defined in:
- app/services/post_manager/article_handler.rb
Instance Method Summary collapse
Methods inherited from PostManager
#edit_path, handler, #initialize, #parsed_body
Constructor Details
This class inherits a constructor from PostManager
Instance Method Details
#category_path(category) ⇒ Object
7 8 9 |
# File 'app/services/post_manager/article_handler.rb', line 7 def category_path(category) "#{@prefix}/articles/#{category.long_slug}" end |
#post_path ⇒ Object
2 3 4 |
# File 'app/services/post_manager/article_handler.rb', line 2 def post_path "#{@prefix}/articles/#{@entity.id}-#{@entity.slug}" end |