Skip to content
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

Cannot visit UUIDTools::UUID #2

Closed
DanielBlanco opened this issue Nov 19, 2011 · 4 comments
Closed

Cannot visit UUIDTools::UUID #2

DanielBlanco opened this issue Nov 19, 2011 · 4 comments

Comments

@DanielBlanco
Copy link
Contributor

I believe below code must be added to your gem, because whenever I did something like post.comments.empty? I got a TypeError: Cannot visit UUIDTools::UUID.

module Arel
  module Visitors
    class DepthFirst < Arel::Visitors::Visitor
      def visit_UUIDTools_UUID(o)
        o.quoted_id
      end
    end
  end
end
@jashmenn
Copy link
Owner

Great! Send a pull request and I'll accept it.

@DanielBlanco
Copy link
Contributor Author

Forked and pull request sent.

@jashmenn
Copy link
Owner

Thanks Daniel!

@anujaware
Copy link

I am using activeuuid 0.6.0. I have upgraded my rails from 3.2.15 to 4.1.8 and I an facing same issue while updating object. Using activerecord_sqlserver_adapter gem 4.1.0 and ahoy_matey 1.1.1. Not able to figure out which gem causing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants