You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using Ruby 2.2 and Rails 4.1. amoeba gem '3.1.0'
Trying to exclude multiple children with if condition. If condition functionality is working with only one child exclusion. like below
amoeba do exclude_association :child1, if: :save_as_draft? enable end def save_as_draft? true end
If I use array of children it is not working. amoeba do exclude_association [:child1, :child2], if: :save_as_draft? enable end def save_as_draft? true end
Please help me out to solve this.
can we exclude like below? amoeba do exclude_association :child1 exclude_association :child2, if: :save_as_draft? enable end
The text was updated successfully, but these errors were encountered:
Hi,
I am using Ruby 2.2 and Rails 4.1. amoeba gem '3.1.0'
Trying to exclude multiple children with if condition. If condition functionality is working with only one child exclusion. like below
amoeba do exclude_association :child1, if: :save_as_draft? enable end def save_as_draft? true end
If I use array of children it is not working.
amoeba do exclude_association [:child1, :child2], if: :save_as_draft? enable end def save_as_draft? true end
Please help me out to solve this.
can we exclude like below?
amoeba do exclude_association :child1 exclude_association :child2, if: :save_as_draft? enable end
The text was updated successfully, but these errors were encountered: