Upgrade for rails 4 to remove deprecated calls

Updated active record dependency to replace calls to deprecated Model.scoped method with calls to Model.all