Andrew Kaspick wrote: > Hello, > > I have an existing application that I'm converting to a Radiant > extension and I was wondering what the best thing to do is with respect > to code I have in my existing applications ApplicationController and > ApplicationHelper? I can't redefine the ApplicationController, but I'd > like to take some of the code I have in it and "extend" Radiant's > ApplicationController with my own custom code since all of my > application controllers already derive from ApplicationController. > > Any recommendations on the approach to take? > > Thanks, > Andrew
I'm thinking that perhaps creating a new base class for a controller is the cleanest approach. So class MyNewBaseController < ApplicationController end And all my existing controller derive from MyNewBaseController. It means I have to update all of my controllers now, but is this how I should do it? -- Posted via http://www.ruby-forum.com/. _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
