Sha256: dddb203f6be4107a9dff9326e26ed286cba570761010582a7e48f7f6304cdeb2
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
require 'standalone_typograf' module CommonHelper def copyright(start_year) current_year = Date.today.year if current_year > start_year "#{start_year} - #{current_year}".html_safe else "#{current_year}" end end def hide_style(style) 'display: none;' + style end def ty(text) ::StandaloneTypograf::Typograf.new(text, mode: :html).prepare.html_safe end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coalla-cms-0.5.2.4 | app/helpers/common_helper.rb |
coalla-cms-0.5.1.9 | app/helpers/common_helper.rb |
coalla-cms-0.5.1.8 | app/helpers/common_helper.rb |