G5 / storext

Add type-casting and other features on top of ActiveRecord::Store.store_accessor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ramontayag opened this issue · comments

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