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_pictures2-2.1.2 app/helpers/markup_helper.rb
ecm_news2-2.0.5 app/helpers/markup_helper.rb
ecm_news2-2.0.4 app/helpers/markup_helper.rb
ecm_news2-2.0.3 app/helpers/markup_helper.rb
ecm_pictures2-2.1.1 app/helpers/markup_helper.rb
ecm_pictures2-2.1.0 app/helpers/markup_helper.rb
ecm_pictures2-2.0.0 app/helpers/markup_helper.rb
ecm_news2-2.0.2 app/helpers/markup_helper.rb
ecm_news2-2.0.1 app/helpers/markup_helper.rb