use Arel for enumeration update
adapt redmines calendar partial/helper to openproject
Merge pull request #703 from opf/feature/codeclimate_findings

fix some codeclimate findings