GithubHelp home page GithubHelp logo

Comments (3)

wapcaplet avatar wapcaplet commented on June 22, 2024

I discovered that I can work around part of this limitation by coercing both the string and symbol, i.e.:

coerce_key :user, 'user', User  

This allows tweet.user, tweet[:user], and tweet['user'] to all be coerced properly, but Tweet.new(:user => ...) still doesn't do coercion.

from hashie.

wapcaplet avatar wapcaplet commented on June 22, 2024

I managed to make these use cases work with relatively few changes to Mash and Coercion. Please consider merging this pull request, and let me know if any further changes are needed to maintain backward compatibility.

from hashie.

jch avatar jch commented on June 22, 2024

Thanks for the pull. It's been a busy week, but I'll try to take a look
this weekend ;)

On Thursday, May 9, 2013, Eric Pierce wrote:

I managed to make these use cases work with relatively few changes to Mash
and Coercion. Please consider merging this pull requesthttps://github.com//pull/96,
and let me know if any further changes are needed to maintain backward
compatibility.


Reply to this email directly or view it on GitHubhttps://github.com//issues/95#issuecomment-17680271
.

-Jerry
@whatcodecraves http://twitter.com/whatcodecraves
github http://github.com/jch

from hashie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.