lib/iugusdk/controllers/helpers.rb in iugusdk-1.0.0.alpha.1 vs lib/iugusdk/controllers/helpers.rb in iugusdk-1.0.0.alpha.2

- old
+ new

@@ -10,10 +10,10 @@ def current_user_account @current_user_account ||= search_user_account( session[:current_account_id] ) end - def select_account( resource, account_id=nil ) + def set_account( resource, account_id=nil ) if account_id == nil account_id = cookies[:last_used_account_id] if cookies[:last_used_account_id] end selected_account = resource.default_account( account_id ) if selected_account