Module: Brut::I18n::ForBackEnd

Includes:
BaseMethods
Included in:
SpecSupport::ComponentSupport, SpecSupport::E2eSupport
Defined in:
lib/brut/i18n/for_back_end.rb

Overview

Use this to access translations in any back-end code. This implementation does support blocks yielded to BaseMethods#t, however their values are not necessarily HTML-escaped.

Instance Method Summary collapse

Methods included from BaseMethods

#l, #t, #t_direct, #this_field_value

Instance Method Details

#capture(&block) ⇒ Object



7
# File 'lib/brut/i18n/for_back_end.rb', line 7

def capture(&block) = block.()

#html_escape(value) ⇒ Object



8
# File 'lib/brut/i18n/for_back_end.rb', line 8

def html_escape(value) = value

#safe(string) ⇒ Object



6
# File 'lib/brut/i18n/for_back_end.rb', line 6

def safe(string) = string