Sha256: a817b7dcbd201afa4128cd3f9d9d4bf62917a434e82cdc9e1df1e01bb471c8ed

Contents?: true

Size: 449 Bytes

Versions: 4

Compression:

Stored size: 449 Bytes

Contents

module ActionView
  class Base

  	def rich_i18n
  	  render :file => File.join(File.dirname(__FILE__), "..", "..", "..", "..", "app", "views", "rich_i18n.html.erb")
  	end

    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
    alias_method_chain :render, :rich_i18n

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rich_i18n-1.2.3 lib/rich/i18n/actionpack/action_view/base.rb
rich_i18n-1.2.2 lib/rich/i18n/actionpack/action_view/base.rb
rich_i18n-1.2.1 lib/rich/i18n/actionpack/action_view/base.rb
rich_i18n-1.2.0 lib/rich/i18n/actionpack/action_view/base.rb