Skip to content

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

Open
@ramontayag

Description

@ramontayag

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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions