is there a way to delegate all instance variables of @template? for example, @controller, @action and others are not set within the scope of the presenter
I've got a solution but would like to have something better
ruby
definitialize(object, template)
@object = object
@template = template
@template.instance_variables.each do |var|
instance_variable_set var, @template.instance_variable_get(var)
endend
Here is the configuration I've used: https://gist.github.com/brauliobo/11298486
is there a way to delegate all instance variables of @template? for example, @controller, @action and others are not set within the scope of the presenter
I've got a solution but would like to have something better