hashrocket / decent_exposure

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

strategies are gone? #173

Closed stevecrozz closed 7 years ago

stevecrozz commented 7 years ago

attempting to upgrade an app of mine to decent_exposure v3 from v2 and it seems that strategies are entirely gone from the gem. The wiki docs mention all kinds of strategies (https://github.com/hashrocket/decent_exposure/wiki/Strategies:-Attr-accessible-with-roles) and I was using them.

I can't tell from reading these docs what I'm supposed to do: https://github.com/hashrocket/decent_exposure/wiki/Api-changes-in-version-3#strategies

Does the line "Strategies from 2.x can now be implemented ::exposure_config" actually mean "we removed strategies entirely from our gem, and you need to implement your own"?

stevecrozz commented 7 years ago

I figured it out. It looks like whatever I was doing with strategies isn't necessary any more: https://github.com/errbit/errbit/pull/1153