Added test for rails 4.2
use public_send instead of send
Merge pull request #3796 from seuros/public_send

Test in rails 4.2 and use public_send instead of send