On Dec 2, 2009, at 2:40 PM, Mislav Marohnić wrote: > On Wed, Dec 2, 2009 at 20:37, Jeremy Kemper <[email protected]> > wrote: > > The rails_xss plugin would need to be restructured a bit to make it > easier to explicitly require and initialize. > > Otherwise users have to explicitly config.plugins = [:rails_xss, > :will_paginate, ...] > > Yes, this will work for plugins, but gems are still loaded before > plugins. >
Note that plugins that are gems get two shots at loading; they first get loaded via require (from config.gem or equivalent) and then rails/ init.rb is loaded, if present. So in your case, it might work to load normally on require and then mark the helpers as safe in rails/ init.rb, if rails_xss is loaded. --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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/rubyonrails-core?hl=en.
