aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/all.rb
blob: 1493815c30783ea0f108e2841dab0b2c2fd92732 (plain) (tree)
1
2
3
4
5
6
7
8
9

               
                                                                                        


                             
   

                   
               
                 
           

                     
                                  

                  
   
require "rails"

if defined?(Rake) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
  ENV['RAILS_ENV'] ||= 'test'
end

%w(
  active_record
  action_controller
  action_mailer
  rails/test_unit
  sprockets
).each do |framework|
  begin
    require "#{framework}/railtie"
  rescue LoadError
  end
end