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'
|
2010-12-16 12:39:05 +00:00
|
|
|
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'
|
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'
|
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)
|
|
|
|
|
2010-10-17 01:18:41 +00:00
|
|
|
rake_tasks do
|
|
|
|
load "railties/tasks.rake"
|
|
|
|
end
|
|
|
|
|
2010-12-30 17:15:06 +00:00
|
|
|
initializer "serving fonts" do |app|
|
|
|
|
app.middleware.insert_after Rack::Lock, '::Locomotive::Middlewares::Fonts', :path => %r{^/fonts}
|
|
|
|
end
|
|
|
|
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|