1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/all.rb

19 lines
321 B
Ruby
Raw Normal View History

require "rails"
2013-04-03 12:51:48 -04:00
if defined?(Rake) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
ENV['RAILS_ENV'] ||= 'test'
end
%w(
active_record
action_controller
action_mailer
2010-01-27 20:39:11 -05:00
rails/test_unit
sprockets
).each do |framework|
begin
require "#{framework}/railtie"
rescue LoadError
end
end