diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-01-02 14:26:49 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-01-02 14:26:49 +0200 |
commit | c84d887187355fc643a45e95d99268e2e60959a2 (patch) | |
tree | 4ad71644c27f5302147752d993f93f0c2f8a3ed6 /lib/refinery | |
parent | 223a71930007315a795f8d42de95e451480e1263 (diff) | |
download | refinerycms-blog-c84d887187355fc643a45e95d99268e2e60959a2.tar.gz refinerycms-blog-c84d887187355fc643a45e95d99268e2e60959a2.tar.bz2 refinerycms-blog-c84d887187355fc643a45e95d99268e2e60959a2.zip |
refinerycms-core requires Rails so don't check if defined?(Rails).
Diffstat (limited to 'lib/refinery')
-rw-r--r-- | lib/refinery/blog.rb | 3 | ||||
-rw-r--r-- | lib/refinery/blog/engine.rb | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/refinery/blog.rb b/lib/refinery/blog.rb index 2023066..9320300 100644 --- a/lib/refinery/blog.rb +++ b/lib/refinery/blog.rb @@ -6,8 +6,7 @@ module Refinery autoload :BlogGenerator, 'generators/refinery/blog/blog_generator' module Blog - - require 'refinery/blog/engine' if defined?(Rails) + require 'refinery/blog/engine' autoload :Version, 'refinery/blog/version' autoload :Tab, 'refinery/blog/tabs' diff --git a/lib/refinery/blog/engine.rb b/lib/refinery/blog/engine.rb index 7e58596..58e38f4 100644 --- a/lib/refinery/blog/engine.rb +++ b/lib/refinery/blog/engine.rb @@ -1,5 +1,3 @@ -require 'refinerycms-blog' - module Refinery module Blog class Engine < Rails::Engine |