Sha256: e3978d81700521075d38d46bd4e64e1049961f3f838ae19fdd044e6551e594ac

Contents?: true

Size: 215 Bytes

Versions: 29

Compression:

Stored size: 215 Bytes

Contents

module MarkupHelper
  def mu(object, method)
    handler = object.send(method)
    erb_string = ::ERB.new(object[method.to_sym].to_s, 0).result(binding)
    handler.class.new(erb_string).to_html.html_safe
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
ecm_news2-5.2.0 app/helpers/markup_helper.rb
ecm_pictures2-6.0.0 app/helpers/markup_helper.rb
ecm_news2-5.1.0 app/helpers/markup_helper.rb
ecm_sliders2-0.0.1 app/helpers/markup_helper.rb
ecm_news2-5.0.1 app/helpers/markup_helper.rb
ecm_pictures2-5.1.0 app/helpers/markup_helper.rb
ecm_pictures2-5.0.1 app/helpers/markup_helper.rb
ecm_pictures2-5.0.0 app/helpers/markup_helper.rb
ecm_news2-5.0.0 app/helpers/markup_helper.rb
ecm_news2-4.0.0 app/helpers/markup_helper.rb
ecm_pictures2-4.0.1 app/helpers/markup_helper.rb
ecm_news2-3.0.0 app/helpers/markup_helper.rb
ecm_pictures2-3.0.1 app/helpers/markup_helper.rb
ecm_news2-2.0.11 app/helpers/markup_helper.rb
ecm_news2-2.0.10 app/helpers/markup_helper.rb
ecm_news2-2.0.9 app/helpers/markup_helper.rb
ecm_pictures2-3.0.0 app/helpers/markup_helper.rb
ecm_pictures2-2.1.4 app/helpers/markup_helper.rb
ecm_pictures2-2.1.3 app/helpers/markup_helper.rb
ecm_news2-2.0.8 app/helpers/markup_helper.rb