engine/lib/locomotive/engine.rb

38 lines
773 B
Ruby
Raw Normal View History

puts "...loading Locomotive engine"
2010-06-03 15:32:40 +00:00
require 'rails'
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'
require 'httparty'
require 'redcloth'
2011-02-22 00:23:46 +00:00
#require 'delayed_job_mongoid'
2010-12-16 12:39:05 +00:00
require 'zip/zipfilesystem'
require 'jammit-s3'
$:.unshift File.dirname(__FILE__)
2010-06-03 15:32:40 +00:00
module Locomotive
class Engine < Rails::Engine
rake_tasks do
load "railties/tasks.rake"
end
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
end