-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathtaxonworks.rb
28 lines (21 loc) · 1.15 KB
/
taxonworks.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module TaxonWorks
# TODO: scope to development
Dir[Rails.root.to_s + '/app/models/nomenclatural_rank/**/*.rb'].sort.each {|file| require file }
Dir[Rails.root.to_s + '/app/models/taxon_name_relationship/**/*.rb'].sort.each {|file| require file }
Dir[Rails.root.to_s + '/app/models/taxon_name_classification/**/*.rb'].sort.each {|file| require file }
Dir[Rails.root.to_s + '/app/models/container/**/*.rb'].sort.each {|file| require file }
Dir[Rails.root.to_s + '/app/models/alternate_value/**/*.rb'].sort.each {|file| require file }
%w{Predicate Topic Keyword BiocurationClass BiologicalProperty BiocurationGroup}.each do |cv_class|
file = Rails.root.to_s + '/app/models/' + cv_class.underscore + '.rb'
require_dependency file
end
Dir[Rails.root.to_s + '/app/models/controlled_vocabulary_term/**/*.rb'].sort.each {|file| require file }
# Internal TODO: Necessary in 4.1?
require 'activerecord_utilities'
# External
# require 'squeel'
require 'benchmark'
# TODO: Move this out of here before production
# paperclip requires information on where ImageMagick is installed.
Paperclip.options[:command_path] = "/usr/local/bin/"
end