Sha256: 07759ff88c8d670910187fbc31cfb2d9580599cfb43e52de62734c3a467395b8

Contents?: true

Size: 285 Bytes

Versions: 11

Compression:

Stored size: 285 Bytes

Contents

require 'active_support/core_ext/string/output_safety'
require 'active_support/core_ext/module/aliasing.rb'

class Array
  def safe_join(sep = $,)
    sep ||= "".html_safe
    sep = ERB::Util.html_escape(sep)
    
    map { |i| ERB::Util.html_escape(i) }.join(sep).html_safe
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
imagine_cms-3.0.0.beta13 lib/extensions/array.rb
imagine_cms-3.0.0.beta12 lib/extensions/array.rb
imagine_cms-3.0.0.beta11 lib/extensions/array.rb
imagine_cms-3.0.0.beta10 lib/extensions/array.rb
imagine_cms-3.0.0.beta9 lib/extensions/array.rb
imagine_cms-3.0.0.beta8 lib/extensions/array.rb
imagine_cms-3.0.0.beta7 lib/extensions/array.rb
imagine_cms-3.0.0.beta6 lib/extensions/array.rb
imagine_cms-3.0.0.beta5 lib/extensions/array.rb
imagine_cms-3.0.0.beta4 lib/extensions/array.rb
imagine_cms-3.0.0.beta3 lib/extensions/array.rb