Skip to content

Commit

Permalink
Fix so that Hobo can be included as a plugin to a generic Rails
Browse files Browse the repository at this point in the history
project without running any generators or anything. [#508 state:resolved]
  • Loading branch information
bryanlarsen committed Oct 22, 2009
1 parent 9546b74 commit edf3f41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hobo/lib/hobo/model.rb
Expand Up @@ -85,6 +85,7 @@ def self.all_models
@models_loaded = true
end

@model_names ||= Set.new
# ...but only return the ones that registered themselves
@model_names.map do |name|
name.safe_constantize || (@model_names.delete name; nil)
Expand Down

0 comments on commit edf3f41

Please sign in to comment.