Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

force loading of lazy-loaded classes

  • Loading branch information...
commit 8e768e4c794d50228c346d6ea945064e3ecb32ef 1 parent 8a044d8
@cmer authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/socialization/config/config.rb
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.