ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

before_filters, except, only and stuff

Added by Chris Woerle at 2011-09-27 10:54 am

There are in every controller a lot of different very special configurations.
specific filter :only, or :except etc. pp.

Do you all love this?
I hate it, i think we should go for less filters, more global, and slightly remove those hard to understand things.


Replies (2)

RE: before_filters, except, only and stuff - Added by Felix Schäfer at 2011-10-02 05:06 pm

Chris Woerle wrote:

Do you all love this?

Not that much.

I hate it, i think we should go for less filters, more global, and slightly remove those hard to understand things.

Less filters isn't really an option either, as each filter is a fine-grained level of functionality you could tweak.

The current state of affairs regarding deep refactorings though is that they should wait for the switch to rails 3 and possibly a reworked/better test suite to avoid breaking compat without warnings…

RE: before_filters, except, only and stuff - Added by Chris Woerle at 2011-10-02 06:41 pm

i agree, that this has to be done very carefully.
i don't oversee everything, but i think there is the danger to make routes available, which are not protected at all and would allow querying things, that you expect as protected.

(1-2/2)