aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/refinerycms-blog.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/refinerycms-blog.rb b/lib/refinerycms-blog.rb
index cb7ed70..7aae395 100644
--- a/lib/refinerycms-blog.rb
+++ b/lib/refinerycms-blog.rb
@@ -1,4 +1,8 @@
-require 'filters_spam' if defined?(Bundler)
+if defined?(Bundler) and !defined?(FiltersSpam)
+ # this will tell the user what to do
+ load(File.expand_path('../../Gemfile', __FILE__))
+ require 'filters_spam'
+end
module Refinery
module Blog