allyourbot / hostedgpt

An open version of ChatGPT you can host anywhere or run locally.
MIT License
192 stars 75 forks source link

Use attribute default to remove some callbacks #294

Closed krschacht closed 3 weeks ago

krschacht commented 3 weeks ago

This is the old way:

before_validation :set_some_attr, on: :create

This is the new way (this PR updates to this):

attribute :attr, default: 123