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

`hash': wrong number of arguments (given 1, expected 0) (ArgumentError) #36

Open
ramontayag opened this issue Mar 14, 2017 · 0 comments

Comments

@ramontayag
Copy link
Contributor

You get the error when you have code like

store_attributes :body do
  hash String
end

You can work around it by store_attribute :body, :hash, String.

  1. Do we support defining of attributes like hash in a block, and if so, how?
  2. If we don't, what kind of error can we raise instead? (Please use store_attribute syntax instead?)
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