Skip to content

Rules should be able to take arrays in the hash conditions#29

Open
krzyczak wants to merge 3 commits into
CanCanCommunity:masterfrom
thebigsofa:master
Open

Rules should be able to take arrays in the hash conditions#29
krzyczak wants to merge 3 commits into
CanCanCommunity:masterfrom
thebigsofa:master

Conversation

@krzyczak

Copy link
Copy Markdown

No description provided.

@amitsuryavanshi

Copy link
Copy Markdown
Member

@krzyczak Can you create a issue with some description ?

else
subject.send(property) == value
if value.is_a?(Enumerable)
subject.class.where(property => value, neo_id: subject.neo_id).exists?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this line is correct then it should handle both cases without the if statement. However, all 10 lines look dubious. If the subject is not a ..Proxy then one should be created rather than querying by neo_id.

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

Successfully merging this pull request may close these issues.

4 participants