On Friday, July 3, 2015 at 4:41:23 PM UTC+2, Jeremy Evans wrote:
>
>
>
>> Do you have any best practice for this kind of scenario or is the above 
>> approach not that bad (in a plugin)?
>>
>
> You might want to consider using the composition plugin. The main issue 
> with the code you posted is you are creating a new frozen OpenStruct on 
> every call to location_struct.
>

Composition plugin works well for that case, didn't think of it.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to