Skip to content

Commit

Permalink
Fixed the loading order of an app's dependencies.
Browse files Browse the repository at this point in the history
If we load apps first, libraries won't be there, hence throwing
exceptions at run time.
For example, this can be reproduced with any library that needs to be registered like ScssInitialiazer.
See #1448#issuecomment-26143346

Apps not being loaded at the last point makes things like libraries
  • Loading branch information
Dario Cravero committed Oct 11, 2013
1 parent d64144f commit 64a99db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion padrino-core/lib/padrino-core/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ def load_paths_was

def dependency_paths_was
@_dependency_paths_was ||= [
"#{root}/config/apps.rb",
"#{root}/config/database.rb",
"#{root}/lib/**/*.rb",
"#{root}/models/**/*.rb",
"#{root}/shared/lib/**/*.rb",
"#{root}/shared/models/**/*.rb",
"#{root}/config/apps.rb"
].freeze
end
end
Expand Down

0 comments on commit 64a99db

Please sign in to comment.