forked from padrino/padrino-framework
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in Padrino::Mounter.app_constant (padrino#1595)
If the module with the same name as the application class has already been defined, Padrino::Mounter.app_constant had returned the very module object. So I intend not to search towards ancestors with second parameter 'false' in 'const_defined?'. This code is only valid in the Ruby 1.9 or later.
- Loading branch information
Showing
4 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PADRINO_ROOT = File.dirname(__FILE__) unless defined? PADRINO_ROOT | ||
|
||
module Demo | ||
class App < Padrino::Application | ||
set :reload, true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PADRINO_ROOT = File.dirname(__FILE__) unless defined? PADRINO_ROOT | ||
|
||
module Demo | ||
class Demo < Padrino::Application | ||
set :reload, true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters