engine/lib/locomotive/engine.rb

47 lines
1011 B
Ruby
Raw Normal View History

puts "...loading Locomotive engine"
2010-06-03 15:32:40 +00:00
require 'rails'
2011-03-10 08:32:34 +00:00
require 'json/pure'
require 'devise'
require 'mongoid'
require 'mongoid_acts_as_tree'
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'
require 'bushido'
require 'httparty'
require 'redcloth'
require 'delayed_job_mongoid'
2010-12-16 12:39:05 +00:00
require 'zip/zipfilesystem'
require 'jammit-s3'
2011-06-28 15:35:25 +00:00
require 'dragonfly'
require 'cancan'
require 'RMagick'
require 'cells'
2011-08-25 13:32:00 +00:00
require 'sanitize'
$:.unshift File.dirname(__FILE__)
2010-06-03 15:32:40 +00:00
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
2010-06-03 15:32:40 +00:00
end
end