Class: ActiveSupport::SafeBuffer
- Inherits:
-
String
show all
- Defined in:
- lib/amelia/active_support/core_ext/output_safety.rb
Instance Method Summary
collapse
Methods inherited from String
#internationalization_options, #to_squawk, #translate_false
Instance Method Details
#internationalization(virtual_path = nil) ⇒ Object
Also known as:
i18n
7
8
9
|
# File 'lib/amelia/active_support/core_ext/output_safety.rb', line 7
def internationalization virtual_path = nil
self
end
|
#safe_concat(value) ⇒ Object
11
12
13
14
15
|
# File 'lib/amelia/active_support/core_ext/output_safety.rb', line 11
def safe_concat value
value.internationalization
raise SafeConcatError unless html_safe?
original_concat value
end
|