tenacity icon indicating copy to clipboard operation
tenacity copied to clipboard

A database client independent way of managing relationships between models backed by different databases.

Results 14 tenacity issues
Sort by recently updated
recently updated
newest added

Would be great if eager loading could be supported for at least the ActiveRecord objects that are part of a tenacity relationship. Unnecessary n+1 queries when following polymorphic relationships w/...

I have the following code: ``` ruby class Parent < ActiveRecord::Base include Tenacity t_has_many :cars, as: :owner end class Child < Parent attr_accessible :type end class Car include Mongoid::Document include...

I followed your advice on how to add it, and its done. You can see a test that adds 4 Seets to the Car. 2 are front seets, 2 back...

Hi there, I'm having difficulties saving an object with a polymorphic association that's empty. This is my code: ``` ruby class Object < ActiveRecord::Base include Tenacity t_has_one :tag, as: :taggable...

``` ruby class User include Mongoid::Document t_has_one :profile end class Profile < ActiveRecord::Base belongs_to :user end user = User.new user.bulid_profile => undefined method 'bulid_profile' ```

feature

If anyone is looking for an updated version of this gem for Mongoid / ActiveRecord, I've updated and put a good amount of work into it here: https://github.com/jwg2s/tenacity. I think...

In my rspec tests I use stubbed foreign id's which causes Tenacity::ObjectDoesNotExistError errors to be thrown from t_belongs_to associations. Is there a way to make existence validation optional?

Failure/Error: c = myKindel.ebooks.create!(:name => "book1") NoMethodError: undefined method `create!' for []:Array This is the way it does work: c1 = Ebook.create!(:name => "book1", :kindel_id => myKindel.id ) c2 =...

feature

I have set up a User model and a Manager model with Single Table inheritance like this : ``` class User < ActiveRecord::Base include Tenacity t_has_many :posts, :foreign_key => "user_id"...

feature