Skip to content

Commit

Permalink
initialize Cells when used as an engine
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorntrondsen committed Jul 27, 2011
1 parent 2f2f410 commit 4f34610
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/locomotive/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
require 'dragonfly'
require 'cancan'
require 'RMagick'
require 'cells'

$:.unshift File.dirname(__FILE__)

Expand All @@ -32,6 +33,10 @@ class Engine < Rails::Engine

config.autoload_once_paths += %W( #{config.root}/app/controllers #{config.root}/app/models #{config.root}/app/helpers #{config.root}/app/uploaders)

initializer "locomotive.cells" do |app|
Cell::Base.prepend_view_path("#{config.root}/app/cells")
end

rake_tasks do
load "railties/tasks.rake"
end
Expand Down

0 comments on commit 4f34610

Please sign in to comment.