replicate icon indicating copy to clipboard operation
replicate copied to clipboard

Add if block_given? to yield in AR callback statements

Open shalicke opened this issue 10 years ago • 0 comments

This commit adds an if block_given? qualifier to the ActiveRecord callbacks. If no block is given and these functions are called, a JumpError is raised. This fixes that issue.

shalicke avatar May 01 '14 22:05 shalicke