Sha256: 995ab2c54aa4a9ceda63de63e142bdf75a35146a23fc6326e2c5f35dc908d743

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

module Phcpresspro
  class ApplicationController < ActionController::Base

    # Security Filters
    protect_from_forgery with: :exception

    # Load Helpers for PHCPress Widgets
    before_action :phcpress_recent_posts

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

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcpresspro-11.0.1 app/controllers/phcpresspro/application_controller.rb