Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little bug for the expose method. #86

Open
zll11111 opened this issue Dec 18, 2017 · 0 comments
Open

A little bug for the expose method. #86

zll11111 opened this issue Dec 18, 2017 · 0 comments

Comments

@zll11111
Copy link

The codes below in judge/config.rb look like having an obvious mistake.

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

You forget to write @@exposed[klass] = attrs at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant