diff options
author | Philip Arndt <parndt@gmail.com> | 2010-09-02 19:16:59 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-09-02 19:16:59 +1200 |
commit | 0c03044fca70cbbf9bb0be3cc0d957f6591121ea (patch) | |
tree | 963073b0fad8c09e801e38d62ec10851e7017d6b /lib | |
parent | d786d706732d5c4fdcbc2090794689dbdd3c27a2 (diff) | |
download | refinerycms-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.rb | 6 |
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 |