engine/lib/locomotive/engine.rb

47 lines
1020 B
Ruby

puts "...loading Locomotive engine"
require 'rails'
require 'json/pure'
require 'devise'
require 'mongoid'
require 'mongoid_acts_as_tree'
require 'mongoid/i18n'
require 'will_paginate'
require 'haml'
require 'liquid'
require 'formtastic'
require 'inherited_resources'
require 'carrierwave'
require 'custom_fields'
require 'mimetype_fu'
require 'actionmailer_with_request'
require 'heroku'
require 'bushido'
require 'httparty'
require 'redcloth'
require 'delayed_job_mongoid'
require 'zip/zipfilesystem'
require 'jammit-s3'
require 'dragonfly'
require 'cancan'
require 'RMagick'
require 'cells'
$:.unshift File.dirname(__FILE__)
module Locomotive
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
end
end