File: //usr/local/rvm/gems/default/doc/i18n-1.8.11/ri/I18n/Backend/Chain/cdesc-Chain.ri
U:RDoc::NormalClass[iI"
Chain:ETI"I18n::Backend::Chain;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[ I"NBackend that chains multiple other backends and checks each of them when ;TI"Na translation needs to be looked up. This is useful when you want to use ;TI"Nstandard translations with a Simple backend but store custom application ;TI"2translations in a database or other backends.;To:RDoc::Markup::BlankLine o; ;[I"LTo use the Chain backend instantiate it and set it to the I18n module. ;TI"FYou can add chained backends through the initializer or backends ;TI"accessor:;T@o:RDoc::Markup::Verbatim;[I"A# preserves the existing Simple backend set to I18n.backend
;TI"\I18n.backend = I18n::Backend::Chain.new(I18n::Backend::ActiveRecord.new, I18n.backend)
;T:@format0o; ;[I"OThe implementation assumes that all backends added to the Chain implement ;TI">a lookup method with the same API as Simple backend does.;T:
@fileI"lib/i18n/backend/chain.rb;T:0@omit_headings_from_table_of_contents_below0;
0;0[ [ [[I"Implementation;To;;[ ;
@";0I"lib/i18n/backend/chain.rb;T[[I"
class;T[[:public[ [:protected[ [:private[ [I"
instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;
0;0[@"I"I18n::Backend;TcRDoc::NormalModule