Fixed deprecated callback termniator warning

Rails 4.1 and above deprecates string style callback terminators. This switches off the version to provide either a lambda or a string, keeping backward compatibility.