Fixed issues with abstract base classes and Rails 4.0