Sha256: 5ba24a093bf570f3e65f10eff73d9d940c115adae426bfcf3e5bfcf038b2a555
Contents?: true
Size: 479 Bytes
Versions: 5
Compression:
Stored size: 479 Bytes
Contents
module Barista module Integration autoload :Rails2, 'barista/integration/rails2' autoload :Rails3, 'barista/integration/rails3' autoload :Sinatra, 'barista/integration/sinatra' def self.setup setup_rails if defined?(Rails) end def self.setup_rails case Rails::VERSION::MAJOR when 3 Rails3 when 2 # We need to manually call the initialiser stuff in Rails 2. Rails2.setup end end end end
Version data entries
5 entries across 5 versions & 1 rubygems