@steveklabnik checking out draper. I like the idea, but I dislike the global state: https://github.com/jcasimir/draper/blob/master/lib/draper/view_context.rb …, is it really necessary?
-
-
Replying to @jonicklas
@jonicklas it is not ideal but it's the best possible way at the moment. there isn't really an API exposed to get this kind of info1 reply 0 retweets 0 likes -
Replying to @steveklabnik
@steveklabnik can't you just send it in as a parameter to the presenter?1 reply 0 retweets 0 likes -
Replying to @jonicklas
@jonicklas@steveklabnik e.g. SomePresenter.new(self,@my_model)5 replies 0 retweets 1 like
Replying to @jonicklas
@jonicklas secondarily, that might be able to remove the thread-global state, yes. would make constructing presenters a bit more complicated
11:19 AM - 14 Jul 2012
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.