engine/lib/locomotive/engine.rb

32 lines
959 B
Ruby
Raw Normal View History

puts "...loading Locomotive engine"
2010-06-03 15:32:40 +00:00
module Locomotive
class Engine < Rails::Engine
isolate_namespace Locomotive
# config.autoload_once_paths += %W( #{config.root}/app/controllers #{config.root}/app/models #{config.root}/app/helpers #{config.root}/app/uploaders)
# 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|
Cell::Base.prepend_view_path("#{config.root}/app/cells")
end
initializer 'locomotive.action_controller' do |app|
::ActionController::Base.wrap_parameters :format => [:json]
end
2010-06-03 15:32:40 +00:00
end
end