Rails4 defect fixes

Style/HashSyntax: Use the new Ruby 1.9 hash syntax.