Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

`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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant