Michal Kwiatkowski
Michal Kwiatkowski
I've worked around this by writing a custom named scope. Using my original example, I could write something like this: ``` class FirstModel named_scope :with_second_models, lambda {|ids| matches = ids.map{...
@jinjor Hi there, any chance of this being merged and released?
Since this isn't an active project I don't really care either way. If you want to submit a PR I'd probably merge it though. In a case like this (i.e....
I don't think this is the right solution. Please see http://stackoverflow.com/questions/3828723/why-should-we-not-use-sys-setdefaultencodingutf-8-in-a-py-script Using `unicode()` in place of `str()` and using `.decode('utf-8')` where applicable is a better solution.
I don't agree with the reasoning presented in the stack overflow post you linked. Anyway, since there is only one place in code where this is needed, using `decode` here...
Thanks! I'd need to prepare a new release to fix this, I think, as this is part of `setup.py` (see https://github.com/mkwiatkowski/pythoscope/blob/master/setup.py#L38 ). The README and some other places would need...
What's .5dev branch? What clean ups you have in mind?
Will gladly accept pull requests for this. :)