Class: ActionView::Base
- Defined in:
- lib/rich/i18n/actionpack/action_view/base.rb
Instance Method Summary collapse
Instance Method Details
#render_with_rich_i18n(*args, &block) ⇒ Object
9 10 11 12 13 |
# File 'lib/rich/i18n/actionpack/action_view/base.rb', line 9 def render_with_rich_i18n(*args, &block) (html = render_without_rich_i18n(*args, &block)).include?("<i18n ") ? ::Rich::I18n::Actionpack::ActionView::Sanitizor.sanitize_html(html) : html end |
#rich_i18n ⇒ Object
5 6 7 |
# File 'lib/rich/i18n/actionpack/action_view/base.rb', line 5 def rich_i18n render :file => File.("../../../../../../app/views/rich_i18n.html.erb", __FILE__) end |