app/controllers/iro/api_controller.rb in iron_warbler-2.0.7.39 vs app/controllers/iro/api_controller.rb in iron_warbler-2.0.7.40

- old
+ new

@@ -47,6 +47,16 @@ email = out[0]['email'] user = User.find_by({ email: email }) sign_in user end + def set_stock + begin + @stock = Iro::Stock.find(params[:id]) + rescue Mongoid::Errors::DocumentNotFound => e + @stock = Iro::Stock.find_by ticker: params[:id] + end + @stocks_list = Iro::Stock.tickers_list + end + + end