added inquiries rails 4 compatibility