Giter VIP home page Giter VIP logo

Comments (6)

pat avatar pat commented on June 2, 2024

I'm struggling a little to get it running locally (seems the bundled ffi and sassc-rails don't play nicely with MRI 2.5.0 - at least on my machine - and sass-rails complains about some of the variables syntax. Which version of Ruby are you using? Though I see Travis is happy enough getting that far…)

Using sass-rails I can at least run a Rails console though, and my tests with your branch are working fine (though my tests are certainly pretty simple)… in what way is tag_list not working? Certainly keen to reproduce the issue in full locally.

I actually don't see a need to call super here. What was the reason for this?

Prior to 2.2.0, taggable models didn't include tag_names in their list of model changes (i.e. location.changes etc) - and part of making this work in modern versions of Rails meant calling through to the underlying method implementation provided by the attribute class method. Previously, tag_names was just stored as a simple array in an instance variable.

from gutentag.

pat avatar pat commented on June 2, 2024

Oh, I see, the issue's more in tag_names than tag_names=. Hmm, okay, will investigate further.

from gutentag.

pat avatar pat commented on June 2, 2024

Okay, I think I've got a fix sorted. Can you try the latest in the master branch to confirm (and if it's all green for you, then I'll get a new gem release out):

gem 'gutentag', '~> 2.2.0',
  git:    'https://github.com/pat/gutentag.git',
  branch: 'master'

from gutentag.

pat avatar pat commented on June 2, 2024

BTW, this fix should ensure tag_names works, and you should also be able to override tag_names= with your custom behaviour as well :)

from gutentag.

tvdeyen avatar tvdeyen commented on June 2, 2024

@pat it's working! Thanks for the help.

from gutentag.

pat avatar pat commented on June 2, 2024

Excellent - I just released v2.2.1 with the fix.

from gutentag.

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.