require 'bulk/routes'

module Bulk
  class Engine < Rails::Engine
    initializer "do not include root in json" do
      # TODO: handle that nicely
      ActiveRecord::Base.include_root_in_json = false
    end

    initializer "require sproutcore Rack app" do
      # fix some failz from sass and haml, TODO: investigate
      require 'haml/util'
      require 'sass/util'

      # it needs to be done after rails load, otherwise haml freaks out
      require 'bulk/sproutcore'
    end

    config.paths.add "app/bulk", :eager_load => true
    config.paths.add "app/sproutcore"
  end
end

require 'bulk/routes'

module Bulk
  class Engine < Rails::Engine
    initializer "do not include root in json" do
      # TODO: handle that nicely
      ActiveRecord::Base.include_root_in_json = false
    end

    initializer "require sproutcore Rack app" do
      # fix some failz from sass and haml, TODO: investigate
      require 'haml/util'
      require 'sass/util'

      # it needs to be done after rails load, otherwise haml freaks out
      require 'bulk/sproutcore'
    end

    initializer "config paths" do |app|
      app.config.paths.add "app/bulk", :eager_load => true
      app.config.paths.add "app/sproutcore"
    end
  end
end

Fix setting paths for Rails 3.1
Fix setting paths for Rails 3.1
