Sha256: 035cb48b9aa05efd0cc3958dfc953ffa65df5e2da1e1911592f1b907095beccc
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 Bytes
Contents
#************************************************************************************* # Methods that will be inserted in the ActionView. #************************************************************************************* module Traducto::Helpers def t(key, options={}) @traducto ||= Traducto::Base.new(self) return @traducto.translate(key, options) end def use_translations_of(action) @traducto ||= Traducto::Base.new(self) @traducto.add_action action end ::ActionView::Base.send :include, self end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
traducto-1.0.8 | lib/traducto/helpers.rb |
traducto-1.0.7 | lib/traducto/helpers.rb |
traducto-1.0.6 | lib/traducto/helpers.rb |