Git Product home page Git Product logo

Comments (4)

fergmastaflex avatar fergmastaflex commented on July 28, 2024

It would seem perform_association only defines reader methods with no arguments.

I'm working on an addition that will also create writer methods as needed.

from active_remote.

liveh2o avatar liveh2o commented on July 28, 2024

Nice. It would be really helpful to be able to set the instance variable to avoid unnecessary lookups.

from active_remote.

fergmastaflex avatar fergmastaflex commented on July 28, 2024

Two question though:

1.) Should we have similar functionality with has_one?

2.) Should a remote object that doesn't exist be created if assigned using a writer method?

from active_remote.

liveh2o avatar liveh2o commented on July 28, 2024

I would think all association methods would get setters: belongs_to, has_one, has_many.

I'd say we should shy away from automatically creating associated records for now to limit the scope. We can make that future functionality.

from active_remote.

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.