Coder Social home page Coder Social logo

Comments (12)

nesquena avatar nesquena commented on July 19, 2024

Yes, I do see your point, it is introspecting the class name while it could just use the name provided. I will look into fixing this sometime soon.

from rabl.

fourcolors avatar fourcolors commented on July 19, 2024

Ok awesome. I'll see if I can't hack something together also. Although it might break more than it fixed ha, jk.

from rabl.

nesquena avatar nesquena commented on July 19, 2024

Note to self and you, here is where it needs to be changed:

from rabl.

nesquena avatar nesquena commented on July 19, 2024

[Note to self] Make sure this fix, fixes this issue as well: #29

from rabl.

nesquena avatar nesquena commented on July 19, 2024

(Heads up) Might be a few days until I have a chance to get to this since the workaround is easy but obviously pull requests welcome :)

from rabl.

fourcolors avatar fourcolors commented on July 19, 2024

No worries. That will give me a chance to try and create something ha. I'm like a yellow belt in code fu.

from rabl.

nesquena avatar nesquena commented on July 19, 2024

Going to close this, not sure it's still relevant. If it is, open a new issue.

from rabl.

fourcolors avatar fourcolors commented on July 19, 2024

Thanks. I actually forgot about this ticket! I'm sorry I didn't actually work on it. That was pretty irresponsible on my part. I did look at the source but ended up kind of scratching my head. I'm still trying to get used to open source projects. Anyway thanks for the project, it's a life saver.

:/

from rabl.

akre54 avatar akre54 commented on July 19, 2024

@nesquena would you mind re-opening this ticket? I bumped up against this same issue (belongs_to :author, class_name: 'User' necessitates :author => :author in my show.rabl). It's an easy fix in my code, but feels like a hack nonetheless.

from rabl.

nesquena avatar nesquena commented on July 19, 2024

@akre54 I believe this captures it? #330

from rabl.

akre54 avatar akre54 commented on July 19, 2024

@nesquena nope, no dice.

child @author != child :author => :author, since :author is a relation (comment belongs_to author, author has_many comments) and not an instance variable. Not a huge deal, just a little unexpected to workaround it like this.

from rabl.

nesquena avatar nesquena commented on July 19, 2024

Got it, will take care of both these cases in the future, thanks for reminding me of the issue.

from rabl.

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.