Skip to content
Browse files

Merge branch 'master' of github.com:cmer/socialization

  • Loading branch information...
1 parent 8e768e4 commit 2bc0ce6373137b2c22ede648a2dcb3848b117388 @cmer committed
Showing with 10 additions and 4 deletions.
  1. +3 −0 README.md
  2. +7 −4 lib/socialization/config/config.rb
View
3 README.md
@@ -186,7 +186,10 @@ Toggle
Mentions?
comment.mentions?(user)
+
+All mentionees
+ comment.mentionees(User)
***
View
11 lib/socialization/config/config.rb
@@ -1,9 +1,12 @@
module Socialization
class << self
- # Force loading of classes if they're not already loaded
- begin; Follow; end
- begin; Mention; end
- begin; Like; end
+ if defined?(Rails)
+ %w{follow mention like}.each do |model|
+ Dir[Rails.root + "app/models/**/#{model}.rb"].each do |path|
+ require path
+ end
+ end
+ end
def follow_model
if @follow_model

0 comments on commit 2bc0ce6

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