Giter VIP home page Giter VIP logo

Comments (8)

joecorcoran avatar joecorcoran commented on July 24, 2024

I need to dig into this, but I think it's a problem that only happens in development due to Rails' autoloading classes. cf. #16

from judge.

ricardodovalle avatar ricardodovalle commented on July 24, 2024

I will try in production, thank you.

from judge.

ricardodovalle avatar ricardodovalle commented on July 24, 2024

Thanks @joecorcoran, in production it is working very well.

I am using the master version

gem 'judge', git: 'git://github.com/joecorcoran/judge.git'

What version would you recommend to use?

from judge.

joecorcoran avatar joecorcoran commented on July 24, 2024

Use the latest version on Rubygems unless you are relying on a bug fix on master, in which case stick with the git option. I should release a new version soon.

from judge.

Dinuz avatar Dinuz commented on July 24, 2024

@ricardodovalle Did you solve this issue? I mean in development, not in production.

@joecorcoran the new version that you were mentioning in the last post (may 15), was released? and if it was released, it solve the problem in development mode too?

Thanks.

from judge.

rubyconvict avatar rubyconvict commented on July 24, 2024

Not sure about production env, but it sure is still broken in develpment mode, I have seen other issue for this closed. I am using 'master' commit e79cda4.

I think this is a 'Singleton' usage problem, look here:

    def expose(klass, *attributes)
      attrs = (@@exposed[klass] ||= [])
      attrs.concat(attributes).uniq!
    end

This is a workaround that works for me (in development):

before, fragile:

Judge.configure do
  expose User, :username
end

after, solid:

Judge.config.exposed[User] = [:username]

from judge.

efmiglioranza avatar efmiglioranza commented on July 24, 2024

Same error here. Tried to change it as @rubyconvict suggested, but the error still occurs in development and production mode.

Edit: actually there was a typo in my params list. Seems to be ok now with @rubyconvict suggestion, but the duplicated field error message doesn't appear anymore.

from judge.

rubyconvict avatar rubyconvict commented on July 24, 2024

Glad I could help.

from judge.

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.