You can use #from to build sub-queries... Useful when you want to chain on a scope that uses SELECT...
after_commit :api_call_and_update, on: :create ... def api_call_and_update # Some call to an API...
No results found in other decks.
You can use #from to build sub-queries... Useful when you want to chain on a scope that uses SELECT...
after_commit :api_call_and_update, on: :create ... def api_call_and_update # Some call to an API...
No results found in other decks.