ActiveResource usage in rails 4 application