Sha256: d7436a3635311558602d06ba8e861a24e4ab2ff3558aed9bc07e3e46326b90c2
Contents?: true
Size: 554 Bytes
Versions: 66
Compression:
Stored size: 554 Bytes
Contents
# Copied from Curate module CurationConcerns::ThemedLayoutController extend ActiveSupport::Concern included do class_attribute :theme self.theme = 'curation_concerns' helper_method :theme helper_method :show_site_actions? helper_method :show_site_search? end module ClassMethods def with_themed_layout(view_name = nil) if view_name layout("#{theme}/#{view_name}") else layout(theme) end end end def show_site_actions? true end def show_site_search? true end end
Version data entries
66 entries across 66 versions & 1 rubygems