Skip to content

Commit c164286

Browse files
committed
restrict to running under application for now. we can make this more robust later if needed
1 parent 33af782 commit c164286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/goliath/api.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class << self
2727
#
2828
# In case of further subclassing, the very last class encountered is used.
2929
definherited(subclass)
30-
Goliath::Application.app_class=subclass.name
30+
Goliath::Application.app_class=subclass.nameifdefined?(Goliath::Application)
3131
end
3232

3333
# Retrieves the middlewares defined by this API server

0 commit comments

Comments
(0)