Re: [Rails-core] Loading delegates in Rails View Helpers on to instance objects

2012-05-03 Thread Piotr Sarnacki
You could just do: delegate :something, :to => "@report" On Wed, May 2, 2012 at 10:31 PM, dcunited001 wrote: > Not sure if this should be done, but I'm writing some excel reports in > ruby. In the rxls views, i'm finding that i refer to @report all the time. > > > In order to make my life easi

[Rails-core] Loading delegates in Rails View Helpers on to instance objects

2012-05-03 Thread dcunited001
Not sure if this should be done, but I'm writing some excel reports in ruby. In the rxls views, i'm finding that i refer to @report all the time. In order to make my life easier i created a bunch of methods in the ReportsHelper for the base ReportsController. But i'm finding that i'm essen