rails 4 change in gemfile and fix in initializer for rails 4