I want to know how to check if the model already exists in the project or not?
When user tries to create a model programatically using the same model name, need to check if it already exists or not?
defined? ModelName
will return "constant" if model defined.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With