Skip to content

Commit

Permalink
restrict to running under application for now. we can make this more …
Browse files Browse the repository at this point in the history
…robust later if needed
  • Loading branch information
dj2 committed Jul 22, 2011
1 parent 33af782 commit c164286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/goliath/api.rb
Expand Up @@ -27,7 +27,7 @@ class << self
#
# In case of further subclassing, the very last class encountered is used.
def inherited(subclass)
Goliath::Application.app_class = subclass.name
Goliath::Application.app_class = subclass.name if defined?(Goliath::Application)
end

# Retrieves the middlewares defined by this API server
Expand Down

0 comments on commit c164286

Please sign in to comment.