Skip to content

Commit

Permalink
Don't cache Pickle::OrmAdapter.model_classes, so reloading is possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Aug 23, 2010
1 parent 0e643d9 commit 764c32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pickle/orm_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def adapters

# all model classes from all registered adapters
def model_classes
@@model_classes ||= adapters.map{|a| a.model_classes }.flatten
adapters.map{|a| a.model_classes }.flatten
end
end

Expand Down

0 comments on commit 764c32c

Please sign in to comment.