hashrocket / decent_exposure

A helper for creating declarative interfaces in controllers
MIT License
1.81k stars 107 forks source link

raise when #{obj}_params doesn't exist #181

Open smtlaissezfaire opened 6 years ago

smtlaissezfaire commented 6 years ago

I'm having an incredibly hard time upgrading an app that was using version 2.

Can you add a mode where it raises if expose(:obj) is called without an obj_params method? Having silent failures is killer.

Obviously it would be better if this was a "compile" time error, although I understand that it would probably be much easier to implement as a run time error.