Juha Suuraho

Results 7 comments of Juha Suuraho

I wrote some specs to clarify my intention. ## has_groups :organizations association First off we define a counterpart to the `has_many :managers` association generated into `Organization` class: ``` class Manager...

I have sketched out a suggestion for the helper at the commit referenced above by paraphrasing your work on the PR above. How should the `has_groups` method be named to...

So feature-wise my commit would check all the boxes. I'll change the name to yours or should it be `belongs_to_group_subclasses` or something to reflect the restriction? This feature should probably...

Started work in 9b87bed If it looks ok I'll replicate it for all relations.

I started work in 3179b3e If it looks ok I'll replicate it for all relations and merge with #49 for a PR.

Mongoid `has_many` does not seem to support a filter for the relation. You could hack around by not creating a new has_many but using the `has_many :groups` relation with a...