Added test for rails 4.2
use public_send instead of send