Skip to content

Commit

Permalink
Merge branch 'main' of github.com:avo-hq/docs.avohq.io
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Nov 14, 2024
2 parents 6b5c0a3 + 86058f8 commit b1d20db
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/3.0/cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ $ bin/rails db:migrate
To set Solid Cache as your Rails cache, you should add this to your environment config:

```ruby
config.cache_store = -> {
ActiveSupport::Cache.lookup_store(:solid_cache_store)
}
# config/environments/production.rb

config.cache_store = :solid_cache_store
```

Check [Solid Cache repository](https://github.com/rails/solid_cache) for additional valuable information.
12 changes: 12 additions & 0 deletions docs/3.0/custom-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,3 +374,15 @@ Next, in your fields `Show` component, you need to do a few things.
```

<Image src="/assets/img/stimulus/hidden_input_color.gif" width="1000" height="76" alt="Hidden input controller" />

### Non existing model field

To ensure proper rendering of a custom field that lacks getters and setters at the model level, you must implement these methods within the model.

```ruby
def custom_field
end

def custom_field=(value)
end
```
2 changes: 1 addition & 1 deletion docs/3.0/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ We know, the array notation looks weird, but it works.

<Option name="`self.single_includes`">

`single_includes` works the same as `includes` but it's going to eager load the associtations on the <Show /> and <Edit /> views only.
`single_includes` works the same as `includes` but it's going to eager load the associations on the <Show /> and <Edit /> views only.
</Option>

<Option name="`self.attachments`">
Expand Down

0 comments on commit b1d20db

Please sign in to comment.