Module: Turbo

Defined in:
lib/turbo.rb,
lib/turbo/version.rb,
lib/turbo/generator.rb

Defined Under Namespace

Classes: Application, Generator

Constant Summary collapse

Modules =
%w( active_record action_controller action_view action_mailer )
VERSION =
"0.0.1"
ANSI_VERSION =
"1.3.0"
CAPYBARA_VERSION =
"1.1.1"
RAILS_VERSION =
"3.0"
RSPEC_VERSION =
"2.6.0"
TURN_VERSION =
"0.8.2"

Class Method Summary collapse

Class Method Details

.initialize!(*modules) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/turbo.rb', line 9

def self.initialize!(*modules)
  Modules << 'sprockets' if Rails.version.to_f >= 3.1
  modules = Modules if modules.empty? || modules == [:all]
  modules.each { |mod| require "#{mod}/railtie" }

  Turbo::Application.configure_for_turbo
  Turbo::Application.initialize!

  silence_stream(STDOUT) do
    load "#{Rails.root}/db/schema.rb"
  end
end