Method: ActiveSupport::SafeBuffer#slice!
- Defined in:
- activesupport/lib/active_support/core_ext/string/output_safety.rb
#slice!(*args) ⇒ Object
51 52 53 54 55 56 57 |
# File 'activesupport/lib/active_support/core_ext/string/output_safety.rb', line 51 def slice!(*args) new_string = super return new_string if !html_safe? || new_string.nil? string_into_safe_buffer(new_string, true) end |