changed to exist since exists is deprecated
Now using Rails 4.1 secrets
Updated to Rails 4.1