Closed rubish closed 12 years ago
I have pushed an updated version to rubygems, as well as updating the gemspec.
Thanks,
J
Thanks!! I have updated to 0.6.0 and everything seems to working just fine. No need to work around things :)
I thought the latest gem will support MongoID out of the box, but I need to include CompletenessFu::ActiveModelAdditions in models for which I want the completeness-fu functionality.
Is there some mailing list where I can request for help? I have some requirements, which I can't figure out how to handle.
Hey Rubish,
Sorry but GH issues or email is the only list, but I am more than happy to help.
It could be the order completeness-fu is required in the gemfile, is it before or after MongoID ?
Currently I don't test the MongoID inclusion and activation, but I would gladly accept a pull request which tests this and corrects any issues :)
Let me know how you get on,
Josh
Hi Josh,
I tried using completeness-fu both before and after mongoid, but that doesn't help.
I have posted a stackoverflow question for my requirements: http://stackoverflow.com/questions/5481847/grouping-checks-with-completeness-fu
I investigated the issue and it seems problem with mongoid is with TimelinessFu::ActiveModelAdditions' "self.included(base)". It defines the method define_completeness_scoring for Mongoid::Document, but not for a model which includes Mongoid::Document.
So, if I have a class: class Foo; include Mongoid::Document; end
I would not have Foo.define_completeness_scoring but I have Mongoid::Document.define_completeness_scoring.
I am not sure how this can be fixed, but I would be happy to contribute if you can guide me.
Thanks for the beautiful gem! I am using this gem with MongoID.
Have you published latest gem with ActiveModel refactoring. I am currently using 0.5.2 and seems to have dependency on ActiveRecord. I am pointing directly to master for the time being, but it complains that the the repository doesn't have a valid gemspec.
I would highly appreciate if you can point me in the right direction?