aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-12-22 12:10:42 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2011-12-22 12:10:42 +0200
commit26243ddade61e5bbad8f07e14b0475000da58b51 (patch)
treeedd8a0b6bbeea63eba0c436ff13f4e720d185f35
parent567bdd63344bed3e293471b0dc30d1d4d7b2c470 (diff)
downloadrefinerycms-blog-26243ddade61e5bbad8f07e14b0475000da58b51.tar.gz
refinerycms-blog-26243ddade61e5bbad8f07e14b0475000da58b51.tar.bz2
refinerycms-blog-26243ddade61e5bbad8f07e14b0475000da58b51.zip
Don't require rails explicitly because refinerycms-core will do it for us.
-rw-r--r--lib/refinery/blog/engine.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/refinery/blog/engine.rb b/lib/refinery/blog/engine.rb
index b949265..7e58596 100644
--- a/lib/refinery/blog/engine.rb
+++ b/lib/refinery/blog/engine.rb
@@ -1,6 +1,5 @@
require 'refinerycms-blog'
-require 'rails'
-
+
module Refinery
module Blog
class Engine < Rails::Engine
@@ -20,7 +19,7 @@ module Refinery
}
end
end
-
+
config.after_initialize do
Refinery.register_engine(Refinery::Blog)
end