-
-
Save dayweek/ba2d925ce0f9accda99d2873bdf5d056 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iset = ItemSet.includes(:item_set_bonuses,:items).where(name: "The Gladiator").first | |
ItemSet Load (0.1ms) SELECT "item_sets".* FROM "item_sets" WHERE "item_sets"."name" = ? | |
ORDER BY "item_sets"."id" ASC LIMIT ? [["name", "The Gladiator"], ["LIMIT", 1]] | |
ItemSetBonus Load (0.2ms) SELECT "item_set_bonuses".* FROM "item_set_bonuses" | |
WHERE "item_set_bonuses"."item_set_id" = 1 | |
Item Load (0.1ms) SELECT "items".* FROM "items" | |
WHERE "items"."item_set_id" = 1 | |
=> #<ItemSet id: 1, name: "The Gladiator"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment