Sha256: 9482b3bb5d499e74c79f738ca90d27479c90eecbfddc7dd78822f07c6fc80540

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 Bytes

Contents

module Phcpresspro
  class ApplicationController < ActionController::Base

    # Load Helpers for PHCPress Widgets
    before_action :phcpress_recent_posts

    # Security Filters
    protect_from_forgery with: :exception

    # Load Helpers
    helper Phctitleseo::Engine.helpers
    helper Phcnotifi::Engine.helpers
    helper Phcaccountspro::Engine.helpers

    # PHCPress Widget Helpers
    def phcpress_recent_posts
      @recent_posts = Articles::Post.all
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcpresspro-12.1.0 app/controllers/phcpresspro/application_controller.rb
phcpresspro-12.0.2 app/controllers/phcpresspro/application_controller.rb
phcpresspro-12.0.1 app/controllers/phcpresspro/application_controller.rb
phcpresspro-12.0.0 app/controllers/phcpresspro/application_controller.rb