-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hash.present? conflict between rails 4.2.4 and tins 1.x #67
Comments
Actually, an update here. It seems stupidedi uses class Object
def present?
true
end
end This conflicts with rails |
Sorry for the slow response. Yes, you can simply remove the dependency on term-ansicolor and the terminal output will be ordinary black-and-white. However, you are correct that There was a proposal in the comments of #48 to use Ruby's refinements to limit the scope of these patches, but I don't think anyone is working on it. I don't really have the time to work on that nor test that it fixes the interaction with Rails, but would gladly accept a pull request. This issue has affected many people, and is a big regret! |
Fixed by #72 |
Recently when I attempted to upgrade to use rails 4.2.4, along with stupidedi, I came across a method definition conflict.
stupidedi depends on term-ansicolor, which depends on tins. Tins add
present?
method to Hash.rails 4.2.4 also add
present?
method to Hash in its active support core extensions.The semantics of the above two methods are different.
Does stupidedi depend on term-ansicolor only because of being able to color the terminal output? If so, is there some way I can turn it off and remove that dependency? or other suggestions? Thanks.
The text was updated successfully, but these errors were encountered: