bullet-train-pro / bullet_train-action_models

Other
5 stars 1 forks source link

Improvement - Allow user to specify a target_model_name for label_string #72

Closed ssteffen closed 1 year ago

ssteffen commented 1 year ago

Currently, if the implementing class returning anything other than an AR scope (or otherwise making database queries) - any time we call label_string for an action model it will actually fully run these methods just to get the name of the target model class. This allows the user to override this behavior in these rare situations where an AR scope is not directly returned.