Sha256: fa6614f394558c5ee34de7890520b994cb27a98d716297c1891d178548db5171
Contents?: true
Size: 639 Bytes
Versions: 3
Compression:
Stored size: 639 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms-2.0.0.2 | lib/hancock/controller.rb |
hancock_cms-2.0.0.1 | lib/hancock/controller.rb |
hancock_cms-2.0.0 | lib/hancock/controller.rb |