Skip to content

Commit

Permalink
Merge pull request #70 from avo-hq/refactor/current_user_to_user_on_a…
Browse files Browse the repository at this point in the history
…vo_current_class

refactor: current user to user on avo current class
  • Loading branch information
Paul-Bob authored Jul 31, 2023
2 parents d8d6958 + 12ce496 commit 5823d60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/3.0/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ group :development do
end
```

Next you should run the `bin/rails avo:upgrade:2_to_3` command and go throught the process.
Next you should run the `bin/rails avo:upgrade:2_to_3` command and go through the process.

Ideally, you'd run the command with a clean tree and then make the last adjustments manually. The command will tell you what those the last adjustments are that you have to do manually.

Expand Down Expand Up @@ -210,7 +210,7 @@ We'll probably change these in the stable release.
Rename the following:

- `Avo::App.context` -> `Avo::Current.context`
- `Avo::App.current_user` -> `Avo::Current.current_user`
- `Avo::App.current_user` -> `Avo::Current.user`
- `Avo::App.params` -> `Avo::Current.params`
- `Avo::App.request` -> `Avo::Current.request`
- `Avo::App.view_context` -> `Avo::Current.view_context`
Expand Down Expand Up @@ -250,7 +250,7 @@ gem "avo_dashboards"

::::option Rename Avo configuration classes

We are falling more in line with how Rails and zeitwerk autoloads classes. We do this to avoidsome issues like class conflicts and difficult to remember naming schemes.
We are falling more in line with how Rails and zeitwerk autoloads classes. We do this to avoid some issues like class conflicts and difficult to remember naming schemes.

The old naming scheme: `{NAME}{TYPE}` (`UserResource`)
The new naming scheme: `Avo::{TYPE}::Name` (`Avo::Resources::User`)
Expand Down

0 comments on commit 5823d60

Please sign in to comment.