aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-09-02 19:16:59 +1200
committerPhilip Arndt <parndt@gmail.com>2010-09-02 19:16:59 +1200
commit0c03044fca70cbbf9bb0be3cc0d957f6591121ea (patch)
tree963073b0fad8c09e801e38d62ec10851e7017d6b /lib
parentd786d706732d5c4fdcbc2090794689dbdd3c27a2 (diff)
downloadrefinerycms-blog-0c03044fca70cbbf9bb0be3cc0d957f6591121ea.tar.gz
refinerycms-blog-0c03044fca70cbbf9bb0be3cc0d957f6591121ea.tar.bz2
refinerycms-blog-0c03044fca70cbbf9bb0be3cc0d957f6591121ea.zip
Ensure that the plugin works correctly (i.e. complains about the missing requirement of filters_spam) when installed using script/plugin install
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