Update engine.rb to make it compatible with rails4

Adding module Rails