aboutsummaryrefslogtreecommitdiffstats
path: root/lib/refinery
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-01-02 14:26:49 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2012-01-02 14:26:49 +0200
commitc84d887187355fc643a45e95d99268e2e60959a2 (patch)
tree4ad71644c27f5302147752d993f93f0c2f8a3ed6 /lib/refinery
parent223a71930007315a795f8d42de95e451480e1263 (diff)
downloadrefinerycms-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.rb3
-rw-r--r--lib/refinery/blog/engine.rb2
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