On Domingo, 24 de Mayo de 2009 17:46:21 Ed W escribió:
> Hi
>
> I'm trying to debug the activescaffold_export plugin and I noticed that
> at least under rails 2.3.2 the various self.included code doesn't seem
> to run for the Actions
>
> So for example this doesn't seem to get run
>
> module ActiveScaffold::Actions
>   module List
>     def self.included(base)
>       base.before_filter :list_authorized?, :only => [:index, :table,
>
> :update_table, :row, :list]
>
>     end
> ...
>
>
> This is noticeable on my app in that the list_authorized function
> doesn't do anything (set it to false and the action still runs) - this
> is in development mode, not tested production settings

I think before_filters must raise an exception, render a view or redirect to 
halt normal execution. I think it was changed in rails 2, we should fix that 
filters in ActiveScaffold, I had forgot it (I changed it in some projects 
before 
I had write access to repository)

-- 
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to