Hi,
We found this tiny useful plugin that allows to detect if model instance
was just created:
```
module Sequel
module Plugins
module JustCreated
module InstanceMethods
def after_create
@just_created = true
super
end
def just_created?
at 10:12:14 AM UTC+2 Jeremy Evans wrote:
> On Wed, Dec 29, 2021 at 8:47 AM tr...@upserver24.com
> wrote:
>
>> Hi,
>>
>> We found this tiny useful plugin that allows to detect if model instance
>> was just created:
>>
>> ```
>> module Sequel
>&g
Same goes for find_or_create, so maybe it could find a home in these
plugins - a way to know which method was actually triggered find (update)
or create?
On Thursday, December 30, 2021 at 11:01:35 PM UTC+2 Jeremy Evans wrote:
> On Thu, Dec 30, 2021 at 12:51 PM tr...@upserver24.com <
>