Class: GuiderCms::CurrentUserArticlesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- GuiderCms::CurrentUserArticlesController
- Defined in:
- app/controllers/guider_cms/current_user_articles_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/guider_cms/current_user_articles_controller.rb', line 5 def index if current_user && is_guider_admin @articles = Article.where(author_id: current_user.id) @root = Category.where(is_root_category: true).first.classification else redirect_to guider_home_path end end |