I have a table-less model like this:

```
class SomeModel
  include ActiveModel::Model
  attribute :foo, :integer, default: 100
end

```

I’m trying to use an attribute from the link below, it works perfectly in normal models however I cannot get it to work in a tableless model.

<https://api.rubyonrails.org/classes/ActiveRecord/Attributes/ClassMethods.html>

This causes an undefined

I’ve tried adding active record attributes:

```
include ActiveRecord::Attributes

```

as an include too however this causes a different error related to the schema.

How do I go about using the attribute in a tableless model? Thanks.