lib/usher/interface.rb in usher-0.5.4 vs lib/usher/interface.rb in usher-0.5.5

- old
+ new

@@ -4,10 +4,11 @@ autoload :Rails2_3Interface, File.join(File.dirname(__FILE__), 'interface', 'rails2_3_interface') autoload :MerbInterface, File.join(File.dirname(__FILE__), 'interface', 'merb_interface') autoload :RackInterface, File.join(File.dirname(__FILE__), 'interface', 'rack_interface') autoload :EmailInterface, File.join(File.dirname(__FILE__), 'interface', 'email_interface') autoload :Rails3Interface, File.join(File.dirname(__FILE__), 'interface', 'rails3_interface') + autoload :TextInterface, File.join(File.dirname(__FILE__), 'interface', 'text_interface') def self.for(type, &blk) class_for(type).new(&blk) end @@ -23,9 +24,11 @@ RackInterface when :email EmailInterface when :rails3 Rails3Interface + when :text + TextInterface end end \ No newline at end of file