diff options
| author | Steven Harman <steven@harmanly.com> | 2016-07-26 10:37:10 -0400 |
|---|---|---|
| committer | Steven Harman <steven@harmanly.com> | 2016-07-26 10:38:58 -0400 |
| commit | e4a4936244988f76318a0b219a3cc0bcdcdf3e30 (patch) | |
| tree | 5982cc372e51c462e8ed337bd09ac55d34705d83 /railties/lib/rails/commands/rake_proxy.rb | |
| parent | 578096b9712a018b0241cb051dc0051239f62193 (diff) | |
| download | rails-e4a4936244988f76318a0b219a3cc0bcdcdf3e30.tar.gz rails-e4a4936244988f76318a0b219a3cc0bcdcdf3e30.tar.bz2 rails-e4a4936244988f76318a0b219a3cc0bcdcdf3e30.zip | |
Default to an empty collection if falsey given
This will ensure we attempt to render an empty collection, meaning we
don't actually render anything at all. Allowing `nil` or a falsey value
through results in calling `render_partial` rather than
`render_collection`, which isn't what we want.
Diffstat (limited to 'railties/lib/rails/commands/rake_proxy.rb')
0 files changed, 0 insertions, 0 deletions
