Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ rails generate solid_errors:install
```

> [!NOTE]
> This will necessary configuration for production. The gem will only show the menu item if Solid Errors is enabled in the environment.
> This will add all necessary configurations for production. The gem will only show the menu item if Solid Errors is enabled in the environment.
> If you want to use this gem in development, you have to add the configuration manually to your `config/environments/development.rb`.

## Release a new version
Expand Down
28 changes: 15 additions & 13 deletions config/initializers/alchemy.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
Rails.application.config.to_prepare do
require "alchemy/solid_errors/ability"

Alchemy.register_ability(Alchemy::SolidErrors::Ability)
Alchemy.admin_stylesheets << "alchemy/solid_errors/alchemy-admin.css"
if SolidErrors.connects_to.present?
Alchemy.register_ability(Alchemy::SolidErrors::Ability)
Alchemy.admin_stylesheets << "alchemy/solid_errors/alchemy-admin.css"

Alchemy::Modules.register_module({
name: "errors",
engine_name: "alchemy",
position: 7.1,
navigation: {
name: "modules.errors",
controller: "/alchemy/admin/errors",
action: "index",
icon: "bug"
}
})
Alchemy::Modules.register_module({
name: "errors",
engine_name: "alchemy",
position: 7.1,
navigation: {
name: "modules.errors",
controller: "/alchemy/admin/errors",
action: "index",
icon: "bug"
}
})
end
end