Skip to content

Commit

Permalink
fix searching when includes is set to nil
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Jul 17, 2013
1 parent 4de0e10 commit d5ab693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_scaffold/data_structures/column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def calculation?
def includes=(value)
@includes = case value
when Array then value
else Array(value) # automatically convert to an array
else value ? [value] : value # not convert nil to [nil]
end
end

Expand Down

0 comments on commit d5ab693

Please sign in to comment.