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
Consider the above Model. It has a method attributes( ). When I try to use this method it throws Error: attributes is not defined on the model. If I change the method name from attributes( ) to any other name it works fine.
Expected behaviour
Should not throw any error If a method is named as attributes( )
Actual behaviour
Throws Error: attributes is not defined on the model
Cannot use method defined as attributes( ) in a Model.
The text was updated successfully, but these errors were encountered:
Introduction
Unable to use method/property named as attributes( ) in a Model.
Issue Description
Consider the above Model. It has a method attributes( ). When I try to use this method it throws Error: attributes is not defined on the model. If I change the method name from attributes( ) to any other name it works fine.
Expected behaviour
Should not throw any error If a method is named as attributes( )
Actual behaviour
Throws Error: attributes is not defined on the model
Cannot use method defined as attributes( ) in a Model.
The text was updated successfully, but these errors were encountered: