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

Version Path
blacksand-2.5.0 app/helpers/blacksand_front/pages_helper.rb
blacksand-2.4.1 app/helpers/blacksand_front/pages_helper.rb
blacksand-2.4.0 app/helpers/blacksand_front/pages_helper.rb
blacksand-2.3.0 app/helpers/blacksand_front/pages_helper.rb
blacksand-2.2.2.1 app/helpers/blacksand_front/pages_helper.rb