fixed duplicate log lines for active record monkey patch and rails 4.1