Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Hashie warnings for re-defined methods such as length #295

Merged
merged 1 commit into from Apr 3, 2017
Merged

Disable Hashie warnings for re-defined methods such as length #295

merged 1 commit into from Apr 3, 2017

Commits on Mar 29, 2017

  1. Disable Hashie warnings for re-defined methods such as length

    Any `Client#describe` class currently results in lots of
    
    ```
    You are setting a key that conflicts with a built-in method Restforce::Mash#length defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
    ```
    
    warnings, bc. of the “fields”-Array as “fields” have a “length” key.
    
    The logging layer of Hashie was introduced in `hashie v3.5.0`. And the disable_warnings method was introduced in `hashie v3.5.2`. See https://github.com/intridea/hashie/blob/master/CHANGELOG.md
    janraasch committed Mar 29, 2017
    Copy the full SHA
    e3a3425 View commit details
    Browse the repository at this point in the history