Merge pull request #143 from Sharagoz/master
Cells gem not initialized in engine
This commit is contained in:
commit
7e31d3ea76
@ -24,6 +24,7 @@ require 'jammit-s3'
|
||||
require 'dragonfly'
|
||||
require 'cancan'
|
||||
require 'RMagick'
|
||||
require 'cells'
|
||||
|
||||
$:.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)
|
||||
|
||||
initializer "locomotive.cells" do |app|
|
||||
Cell::Base.prepend_view_path("#{config.root}/app/cells")
|
||||
end
|
||||
|
||||
rake_tasks do
|
||||
load "railties/tasks.rake"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user