Fix for Rails 4.1.2 Missing Before

Fix for Rails 4.1.2 Missing before method