Fun little hack that allows you to use 1 model to access any table in the database.
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
|class Standin < ApplicationRecord|
|self.table_name = name|