soveran / ohm-scripts

Lua scripts for Ohm compatible libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: Maybe we don't need the `key` attribute in `model` param of delete script

xxuejie opened this issue · comments

I was reading those scripts, and it occurs to me that since we are calculating the key attribute in save script, why not use the same technique in the delete script? We already have the model name and ID, should be easy to generate the key attribute here.

Just throwing my 2 cents here :)