Sha256: 628b7976ec4928b9888b141c487f83521b0db0de953bbb12803311590cd5ccbd
Contents?: true
Size: 393 Bytes
Versions: 5
Compression:
Stored size: 393 Bytes
Contents
module BlacksandFront module PagesHelper def page(en_name) Blacksand::Page.where(en_name: en_name).first end def textarea2html(text) text.split(' ').join('<br>').html_safe if text.present? end def set_page_options(hash) @_page_options ||= {} @_page_options.merge!(hash) end def page_options @_page_options || {} end end end
Version data entries
5 entries across 5 versions & 1 rubygems