# frozen_string_literal: true
-require File.dirname(__FILE__) + '/lib/acts_as_activity_provider'
+require_relative 'lib/acts_as_activity_provider'
ActiveRecord::Base.send(:include, Redmine::Acts::ActivityProvider)
# frozen_string_literal: true
-require File.dirname(__FILE__) + '/lib/acts_as_attachable'
+require_relative 'lib/acts_as_attachable'
ActiveRecord::Base.send(:include, Redmine::Acts::Attachable)
# frozen_string_literal: true
-require File.dirname(__FILE__) + '/lib/acts_as_customizable'
+require_relative 'lib/acts_as_customizable'
ActiveRecord::Base.send(:include, Redmine::Acts::Customizable)
# frozen_string_literal: true
-require File.dirname(__FILE__) + '/lib/acts_as_event'
+require_relative 'lib/acts_as_event'
ActiveRecord::Base.send(:include, Redmine::Acts::Event)
# frozen_string_literal: true
-require File.dirname(__FILE__) + '/lib/acts_as_searchable'
+require_relative 'lib/acts_as_searchable'
ActiveRecord::Base.send(:include, Redmine::Acts::Searchable)
# frozen_string_literal: true
-require File.dirname(__FILE__) + '/lib/active_record/acts/tree'
+require_relative 'lib/active_record/acts/tree'
ActiveRecord::Base.send :include, ActiveRecord::Acts::Tree
# frozen_string_literal: true
# Include hook code here
-require File.dirname(__FILE__) + '/lib/acts_as_watchable'
+require_relative 'lib/acts_as_watchable'
ActiveRecord::Base.send(:include, Redmine::Acts::Watchable)
# frozen_string_literal: true
-require File.dirname(__FILE__) + '/lib/gravatar'
+require_relative 'lib/gravatar'
ActionView::Base.send :include, GravatarHelper::PublicMethods
# frozen_string_literal: true
-require File.dirname(__FILE__) + '/string/conversions'
-require File.dirname(__FILE__) + '/string/inflections'
+require_relative 'string/conversions'
+require_relative 'string/inflections'
# @private
class String
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.dirname(__FILE__) + '/utils/date_calculation'
-require File.dirname(__FILE__) + '/utils/shell'
+require_relative 'utils/date_calculation'
+require_relative 'utils/shell'
require 'fileutils'
module Redmine