initialize Cells when used as an engine
This commit is contained in:
parent
2f2f410312
commit
4f34610918
@ -24,6 +24,7 @@ require 'jammit-s3'
|
|||||||
require 'dragonfly'
|
require 'dragonfly'
|
||||||
require 'cancan'
|
require 'cancan'
|
||||||
require 'RMagick'
|
require 'RMagick'
|
||||||
|
require 'cells'
|
||||||
|
|
||||||
$:.unshift File.dirname(__FILE__)
|
$:.unshift File.dirname(__FILE__)
|
||||||
|
|
||||||
@ -32,6 +33,10 @@ module Locomotive
|
|||||||
|
|
||||||
config.autoload_once_paths += %W( #{config.root}/app/controllers #{config.root}/app/models #{config.root}/app/helpers #{config.root}/app/uploaders)
|
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
|
rake_tasks do
|
||||||
load "railties/tasks.rake"
|
load "railties/tasks.rake"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user