Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

.on() creates an empty array in the errors #58

Open
endor opened this issue Jul 9, 2012 · 0 comments
Open

.on() creates an empty array in the errors #58

endor opened this issue Jul 9, 2012 · 0 comments

Comments

@endor
Copy link

endor commented Jul 9, 2012

I do not have any errors on my object. If I call obj.errors I get:

{}

If I do a

obj.errors.on(:attr)

now, I would expect that obj.errors returns the same hash afterwards. It does not though, it returns:

{attr: []}

Is that expected behaviour?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant