fixing gem problems
fixing deprecation warning in activeRecord associations