Sha256: 3287bd5083c3ced71a91a03df4498e28f5058ba7d029fa5e81b8c879e5443a90
Contents?: true
Size: 594 Bytes
Versions: 2
Compression:
Stored size: 594 Bytes
Contents
module Theblog class ApplicationController < ActionController::Base include Pundit protect_from_forgery with: :exception private def menu @menu ||= Page.published end helper_method :menu # TODO: get current account helper name from Incarnator alias_method :current_user, :current_account def path_to_content_node(node) if node.parent_node.present? theblog.content_node_path(node.parent_node.slug, node.slug) else theblog.root_content_node_path(node.slug) end end helper_method :path_to_content_node end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
theblog-0.0.2.2 | app/controllers/theblog/application_controller.rb |
theblog-0.0.2.1 | app/controllers/theblog/application_controller.rb |