Sha256: 1066f9e2ff29a1b8f3cbdd7576a9d4afaa59819b38e8a37c3a3a3b304d911e9d
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
require 'action_dispatch/http/mime_type' Mime::Type.register "application/vnd.ms-excel", :xls Mime::Type.register "text/plain", :ascii require 'tableview/tv' require 'tableview/view_handler' require 'tableview/responder' ActionView::Template.register_template_handler 'tv', Tableview::TV.new module Tableview def self.output_class(format) format = :html if format.blank? begin require File.join(File.dirname(__FILE__), "tableview", "output", format.to_s.downcase) rescue raise NoOuputClassError end ("Tableview::Ouput::" + format.to_s.upcase).constantize end class NoOuputClassError end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tableview-0.2.0 | lib/tableview.rb |
tableview-0.1.0 | lib/tableview.rb |