Sha256: 7fcea5e639e6f329645c8cad9e7b8020eed108083dae80d436ccd8b8cbad2f73
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 Bytes
Contents
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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coalla-cms-0.4.2.0 | app/helpers/common_helper.rb |
coalla-cms-0.4.4.3 | app/helpers/common_helper.rb |