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
{{ message }}
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.
When you access the property through the auto-generated accessor, it will perform the type conversion, but if you access the property through the square-bracket hash syntax, it returns the raw, unconverted value:
model.my_prop# => 42model[:my_prop]# => "42"
The Modelish::Base#[] method is currently borrowed from hashie. We need to re-implement it to support modelish-specific concepts like property types (this will probably entail refactoring the property type code as well).
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Given the following modelish object:
When you access the property through the auto-generated accessor, it will perform the type conversion, but if you access the property through the square-bracket hash syntax, it returns the raw, unconverted value:
The
Modelish::Base#[]
method is currently borrowed from hashie. We need to re-implement it to support modelish-specific concepts like property types (this will probably entail refactoring the property type code as well).The text was updated successfully, but these errors were encountered: