1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
require "rails" %w( active_support active_model active_record action_controller action_view action_mailer active_resource ).each do |framework| begin require "#{framework}/railtie" rescue LoadError end end