id_param now returns nil when the param is nil
treat ActiveRecord::Relation as Array
Merge remote-tracking branch 'francocatena/master'
Merge remote-tracking branch 'neubloc/master'