2010-10-17 01:18:41 +00:00
|
|
|
puts "...loading Locomotive engine"
|
2010-06-03 15:32:40 +00:00
|
|
|
|
2010-10-17 01:18:41 +00:00
|
|
|
require 'rails'
|
2011-03-10 08:32:34 +00:00
|
|
|
require 'json/pure'
|
2010-06-03 20:20:53 +00:00
|
|
|
require 'devise'
|
|
|
|
require 'mongoid'
|
|
|
|
require 'mongoid_acts_as_tree'
|
2011-11-05 07:42:04 +00:00
|
|
|
require 'kaminari'
|
2010-12-16 12:39:05 +00:00
|
|
|
require 'haml'
|
|
|
|
require 'liquid'
|
|
|
|
require 'formtastic'
|
|
|
|
require 'inherited_resources'
|
|
|
|
require 'carrierwave'
|
|
|
|
require 'custom_fields'
|
|
|
|
require 'mimetype_fu'
|
|
|
|
require 'actionmailer_with_request'
|
|
|
|
require 'heroku'
|
2011-03-21 10:33:17 +00:00
|
|
|
require 'bushido'
|
2010-07-06 21:44:24 +00:00
|
|
|
require 'httparty'
|
2010-07-15 11:10:00 +00:00
|
|
|
require 'redcloth'
|
2011-03-08 15:05:07 +00:00
|
|
|
require 'delayed_job_mongoid'
|
2010-12-16 12:39:05 +00:00
|
|
|
require 'zip/zipfilesystem'
|
2010-12-30 14:24:47 +00:00
|
|
|
require 'jammit-s3'
|
2011-06-28 15:35:25 +00:00
|
|
|
require 'dragonfly'
|
2011-06-28 15:43:11 +00:00
|
|
|
require 'cancan'
|
2011-06-28 16:05:23 +00:00
|
|
|
require 'RMagick'
|
2011-07-27 13:56:56 +00:00
|
|
|
require 'cells'
|
2011-08-25 13:32:00 +00:00
|
|
|
require 'sanitize'
|
2010-10-17 01:18:41 +00:00
|
|
|
|
|
|
|
$:.unshift File.dirname(__FILE__)
|
2010-06-03 15:32:40 +00:00
|
|
|
|
|
|
|
module Locomotive
|
|
|
|
class Engine < Rails::Engine
|
|
|
|
|
2011-03-06 22:36:30 +00:00
|
|
|
config.autoload_once_paths += %W( #{config.root}/app/controllers #{config.root}/app/models #{config.root}/app/helpers #{config.root}/app/uploaders)
|
|
|
|
|
2011-07-27 13:56:56 +00:00
|
|
|
initializer "locomotive.cells" do |app|
|
|
|
|
Cell::Base.prepend_view_path("#{config.root}/app/cells")
|
|
|
|
end
|
|
|
|
|
2010-10-17 01:18:41 +00:00
|
|
|
rake_tasks do
|
|
|
|
load "railties/tasks.rake"
|
|
|
|
end
|
|
|
|
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|