Skip to content

Commit

Permalink
Fixes incorrect condition in changes for nil object test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsykes committed Dec 20, 2010
1 parent fff5cbe commit 9b8e5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slim_scrooge/monitored_hash.rb
Expand Up @@ -29,7 +29,7 @@ def self.[](monitored_columns, unmonitored_columns, callsite)
#
def new_column_access(name)
if @callsite.columns_hash.has_key?(name)
@result_set.reload! unless @result_set.nil? && name == @callsite.primary_key
@result_set.reload! if !@result_set.nil? && name != @callsite.primary_key
Callsites.add_seen_column(@callsite, name)
end
@monitored_columns[name]
Expand Down

0 comments on commit 9b8e5b0

Please sign in to comment.