engine/lib/locomotive/engine.rb

21 lines
519 B
Ruby
Raw Normal View History

2010-06-03 15:32:40 +00:00
puts "...Locomotive engine loaded"
require 'liquid'
require 'devise'
require 'carrierwave'
require 'formtastic'
require 'mongoid'
require 'mongoid_acts_as_tree'
2010-06-03 15:32:40 +00:00
require File.dirname(__FILE__) + '/../../vendor/plugins/custom_fields/init.rb'
2010-06-03 15:32:40 +00:00
module Locomotive
class Engine < Rails::Engine
initializer "locomotive.add_helpers" do |app|
path = [*ActionController::Base.helpers_path] << File.dirname(__FILE__) + "/../../app/helpers"
ActionController::Base.helpers_path = path
end
end
end