fixed error in model method and added require false for gem