Removed incompatibility with active_support 4.x.

Tested with active_support 4.x and everything works well.

Rubocop 0.21 is not supported, version fixed to 0.20.1