constellation-base 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,10 +30,10 @@ module Constellation
|
|
30
30
|
end
|
31
31
|
|
32
32
|
filename = self.name.underscore
|
33
|
+
found = false
|
33
34
|
modules.each do |m|
|
34
35
|
if Rails.application.config.constellation.include? m
|
35
36
|
root = Rails.application.config.constellation.send(m).root
|
36
|
-
found = false
|
37
37
|
["/lib/", "/app/controllers/", "/app/models/", "/app/mailers/"].each do |path|
|
38
38
|
begin
|
39
39
|
require root + path + filename
|
@@ -41,10 +41,10 @@ module Constellation
|
|
41
41
|
rescue LoadError
|
42
42
|
end
|
43
43
|
end
|
44
|
-
# TODO: Refer to a FAQ or Guide entry
|
45
|
-
raise LoadError.new "Could not find any Constellation provided files to include! Have you required the gems?" unless found
|
46
44
|
end
|
47
|
-
end
|
45
|
+
end
|
46
|
+
# TODO: Refer to a FAQ or Guide entry
|
47
|
+
raise LoadError.new "Could not find any Constellation provided files to include! Have you required the gems?" unless found
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|