Skip to content

Add exists? to Relation#349

Open
michebble wants to merge 1 commit into
active-hash:masterfrom
michebble:add-exists-to-relation
Open

Add exists? to Relation#349
michebble wants to merge 1 commit into
active-hash:masterfrom
michebble:add-exists-to-relation

Conversation

@michebble

Copy link
Copy Markdown

ActiveRecord allows calling exists? on a relation, however ActiveHash currently only allows calling it on the base model. Adding the method to Relation provides functionality that those familiar with ActiveRecord expect.

I needed to monkey patch my app to get this behaviour and would appropriate it if you would consider including this in the next release. I would like to get rid of the monkey patch if possible

ActiveRecord allows calling exists? on Realtions, however ActiveHash
currently only allows calling it on the base model. Adding the method to
Realtion provides functionality that those familar with ActiveRecord
expect.
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.

1 participant