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

ActiveModel complains about missing attributes when using select on Storext model

jpmoral opened this issue · comments

class Foo < ActiveRecord::Base
  include Storext.model

  store_attributes :settings do
    attribute_name String
  end
end

Foo.where(some_attr: some_value).select(:some_attr).first
# => ActiveModel::MissingAttributeError: missing attribute: settings

@jpmoral you're right - I'm mistaken. This particular issue was not fixed. Re-opening.