From 0c03044fca70cbbf9bb0be3cc0d957f6591121ea Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Thu, 2 Sep 2010 19:16:59 +1200 Subject: Ensure that the plugin works correctly (i.e. complains about the missing requirement of filters_spam) when installed using script/plugin install --- lib/refinerycms-blog.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3