- database[:permissions][user] = DATABASE_PRIVILEGES.inject([]) do |privileges, privilege|
- privileges << privilege if record["#{privilege}_priv".to_sym] == "Y"
- privileges
- end
+ database[:permissions][user] = DATABASE_PRIVILEGES.each_with_object([]) do |privilege, privileges|
+ privileges << privilege if record["#{privilege}_priv".to_sym] == "Y"