Andrew Kaspick wrote in post #956776:
> I'm trying to figure out the same thing.  Please post an update if you
> have a solution.
>
> Thanks

Ok, here's my solution, but it feels dirty... it'd be nice if somebody 
knew if there was a "proper" solution.

Anyway, I added the following methods to my module.  I used extend so 
I'm using self on these, but since you're using include, you can drop 
the self part.

  def self.config=(controller)
    @controller = controller
  end
  def self.config
    @controller
  end
  def self.controller
    @controller
  end

I just call call the config= method with a controller object; if you 
don't have one, you'll have to gain access to it somehow.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en.

Reply via email to