On Miércoles, 12 de diciembre de 2012 15:20:23 Soren Christensen escribió: > Hi, > > Has anyone moved the actual export action form ActiveScaffoldExport to a > DelayedJob worker or similar background task. > > I took a pass at it yesterday, but I need to find a way to get the > active_scaffold_config made available to the worker. Passing it directly > through the Enque method generates a huge amount of data (in my case) and > therefore a no-go. > > Has anyone done this a DelayedJob based exporter, or have any suggestions as > to how one would get access to active_scaffold_config inside of the worker. > > /S
You can get active_scaffold_config from the controller or model class, with model: active_scaffold_config_for(model), with controller controller.active_scaffold_config -- 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.
