Permalink
Browse files

force loading of lazy-loaded classes

  • Loading branch information...
1 parent 8a044d8 commit 8e768e4c794d50228c346d6ea945064e3ecb32ef @cmer committed Jul 4, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/socialization/config/config.rb
@@ -1,5 +1,10 @@
module Socialization
class << self
+ # Force loading of classes if they're not already loaded
+ begin; Follow; end
+ begin; Mention; end
+ begin; Like; end
+
def follow_model
if @follow_model
@follow_model

0 comments on commit 8e768e4

Please sign in to comment.