Skip to content
Browse files

Autoload Arel::Session

  • Loading branch information...
1 parent 927d8b8 commit 836a57732c6ddd3842f1bf50e687049a098f7383 @brynary brynary committed
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/arel.rb
View
8 lib/arel.rb
@@ -5,6 +5,8 @@
require 'active_record'
require 'active_record/connection_adapters/abstract/quoting'
-require 'arel/algebra'
-require 'arel/engines'
-require 'arel/session'
+module Arel
+ require 'arel/algebra'
+ require 'arel/engines'
+ autoload :Session, 'arel/session'
+end

0 comments on commit 836a577

Please sign in to comment.
Something went wrong with that request. Please try again.