Fixed require of level 1.

This commit is contained in:
Martin Edenhofer 2013-09-20 13:58:06 +02:00
parent 0b525ca3d9
commit 0ed5cbe741
5 changed files with 2 additions and 15 deletions

View file

@ -1,9 +1,5 @@
# Copyright (C) 2013-2013 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2013-2013 Zammad Foundation, http://zammad-foundation.org/
require 'cache'
require 'user_info'
require 'sessions'
class ApplicationModel < ActiveRecord::Base class ApplicationModel < ActiveRecord::Base
self.abstract_class = true self.abstract_class = true

View file

@ -1,7 +1,5 @@
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
require 'cache'
class Sla < ApplicationModel class Sla < ApplicationModel
store :condition store :condition
store :data store :data

View file

@ -1,8 +1,5 @@
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
require 'time_calculation'
require 'sla'
class Ticket < ApplicationModel class Ticket < ApplicationModel
before_create :check_generate, :check_defaults before_create :check_generate, :check_defaults
before_update :check_defaults before_update :check_defaults

View file

@ -1,9 +1,5 @@
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
require 'sso'
require 'digest/sha2'
require 'organization'
class User < ApplicationModel class User < ApplicationModel
include User::Assets include User::Assets
extend User::Search extend User::Search

View file

@ -16,7 +16,7 @@ module Zammad
# -- all .rb files in that directory are automatically loaded. # -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable. # Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += Dir["#{config.root}/lib/**/"] config.autoload_paths += Dir["#{config.root}/lib/*", "#{config.root}/lib/**/"]
# config.autoload_paths += %W(#{config.root}/lib) # config.autoload_paths += %W(#{config.root}/lib)
# Only load the plugins named here, in the order given (default is alphabetical). # Only load the plugins named here, in the order given (default is alphabetical).
@ -74,4 +74,4 @@ module Zammad
config.api_path = '/api/v1' config.api_path = '/api/v1'
end end
end end