Sha256: ad98e087f84c673da068d0e58b89758e5dd015b818cee10c470939fa0423823d
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
module BoilerplateEngineHelper def head_title(title = nil) content_for(:head_title) { title } and return if title content_for?(:head_title) ? content_for(:head_title) : BoilerplateYetting.default_head_title end def meta_description(meta_description = nil) content_for(:meta_description) { meta_description } and return if meta_description content_for?(:meta_description) ? content_for(:meta_description) : BoilerplateYetting.default_meta_description end def notice flash[:notice] rescue "" end def alert flash[:alert] rescue "" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
boilerplate_engine-0.0.1 | app/helpers/boilerplate_engine_helper.rb |