app/controllers/phcpress/frontend/articles_controller.rb in phcpress-9.0.1 vs app/controllers/phcpress/frontend/articles_controller.rb in phcpress-9.1.0

- old
+ new

@@ -1,20 +1,20 @@ -require_dependency "phcpress/application_controller" - -module Phcpress - class Frontend::ArticlesController < ApplicationController - - # Security & Filters - layout '/layouts/phcpress/frontend.html.erb' - - # Article Index - def index - @articles_index = Articles::Post.all - end - - # Single Article Post - def show - @articles_single = Articles::Post.find(params[:id]) - end - - end -end +require_dependency "phcpress/application_controller" + +module Phcpress + class Frontend::ArticlesController < ApplicationController + + # Security & Filters + layout '/layouts/phcpress/frontend.html.erb' + + # Article Index + def index + @articles_index = Articles::Post.all + end + + # Single Article Post + def show + @articles_single = Articles::Post.find(params[:id]) + end + + end +end