Permalink
Browse files

Ensure that the plugin works correctly (i.e. complains about the miss…

…ing requirement of filters_spam) when installed using script/plugin install
  • Loading branch information...
parndt committed Sep 2, 2010
1 parent d786d70 commit 0c03044fca70cbbf9bb0be3cc0d957f6591121ea
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/refinerycms-blog.rb
View
@@ -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

0 comments on commit 0c03044

Please sign in to comment.