ryanb/cancan — pull request #977 by rahul-tapali (2013-12-29 03:49:23+00:00)
Title: Changing [].flatten to array wrapper method

Changing [].flatten to array wrapper method

[[1,2,3]].flatten <=> Array([1,2,3]) => [1,2,3]
[1].flatten <=> Array(1) => [1]

And this will avoid the nil value

[nil].flatten => [nil]
Array(nil) => []