2010-10-17 01:18:41 +00:00
|
|
|
puts "...loading Locomotive engine"
|
2010-06-03 15:32:40 +00:00
|
|
|
|
|
|
|
module Locomotive
|
|
|
|
class Engine < Rails::Engine
|
|
|
|
|
2011-10-31 23:44:23 +00:00
|
|
|
isolate_namespace Locomotive
|
|
|
|
|
2011-11-21 01:27:05 +00:00
|
|
|
# config.autoload_once_paths += %W( #{config.root}/app/controllers #{config.root}/app/models #{config.root}/app/helpers #{config.root}/app/uploaders)
|
2011-03-06 22:36:30 +00:00
|
|
|
|
2011-10-30 23:02:41 +00:00
|
|
|
# initializer 'locomotive.load_controllers_and_models' do |app|
|
|
|
|
# puts "[locomotive/initializer] locomotive.load_controllers_and_models"
|
|
|
|
# end
|
|
|
|
#
|
|
|
|
# config.before_initialize do |app|
|
|
|
|
# puts "[locomotive/before_initialize] NOTHING IS INITIALIZED !!!!!"
|
|
|
|
# end
|
|
|
|
#
|
|
|
|
# config.before_configuration do |app|
|
|
|
|
# puts "[locomotive/before_configuration] NOTHING IS INITIALIZED !!!!!"
|
|
|
|
# end
|
|
|
|
|
|
|
|
initializer 'locomotive.cells' do |app|
|
2011-07-27 13:56:56 +00:00
|
|
|
Cell::Base.prepend_view_path("#{config.root}/app/cells")
|
|
|
|
end
|
|
|
|
|
2011-11-10 01:43:19 +00:00
|
|
|
initializer 'locomotive.action_controller' do |app|
|
2012-01-09 14:49:59 +00:00
|
|
|
::ActionController::Base.wrap_parameters :format => [:json]
|
2011-11-10 01:43:19 +00:00
|
|
|
end
|
|
|
|
|
2010-06-03 15:32:40 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|