Sha256: 1b277205a8db9c444def94d397bd7fba0c63c8d6563bab699253d894f94fa4f7
Contents?: true
Size: 637 Bytes
Versions: 4
Compression:
Stored size: 637 Bytes
Contents
module Hancock::Controller extend ActiveSupport::Concern included do include Hancock::Errors include Hancock::Fancybox if defined?(Hancock::Pages) include Hancock::Pages::SeoPages include Hancock::Pages::NavMenu include Hancock::Pages::Blocksetable end protect_from_forgery with: :exception helper_method :page_title helper_method :hide_ym_ga end protected def page_title Settings ? Settings.default_title : "" #temp end def ckeditor_authenticate redirect_to '/' unless user_signed_in? && current_user.has_role?('admin') end def hide_ym_ga false end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms-1.0.1 | lib/hancock/controller.rb |
hancock_cms-1.0.0.3 | lib/hancock/controller.rb |
hancock_cms-1.0.0.2 | lib/hancock/controller.rb |
hancock_cms-1.0.0 | lib/hancock/controller.rb |