Coder Social home page Coder Social logo

Comments (2)

suung avatar suung commented on September 7, 2024

also weird:

2.2.2 :008 > t = Spree::Taxon.first.name
  Spree::Taxon Load (0.7ms)  SELECT  "spree_taxons".* FROM "spree_taxons"  ORDER BY "spree_taxons"."id" ASC LIMIT 1
  Spree::Taxon::Translation Load (0.4ms)  SELECT "spree_taxon_translations".* FROM "spree_taxon_translations" WHERE "spree_taxon_translations"."spree_taxon_id" = $1  [["spree_taxon_id", 1]]
 => "Wine" 
2.2.2 :009 > Spree::Taxon.find_by(name: t)
  Spree::Taxon Load (0.8ms)  SELECT  "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_taxon_translations" ON "spree_taxon_translations"."spree_taxon_id" = "spree_taxons"."id" WHERE "spree_taxon_translations"."name" = '--- !ruby/object:ActiveRecord::StatementCache::Substitute {}
' AND "spree_taxon_translations"."locale" = $1 LIMIT 1  [["locale", "en"]]
 => nil 
2.2.2 :010 > 

from spree_globalize.

alepore avatar alepore commented on September 7, 2024

yeah that's a known globalize bug...

from spree_globalize.

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.