Content
View differences
Updated by Eric Schubert over 1 year ago
It should include `#url_helpers` by analogy with `ApplicationComponent`. It is a follow up on discussion in [https://github.com/opf/openproject/pull/15028](https://github.com/opf/openproject/pull/15028). [https://github.com/opf/openproject/pull/15028.](https://github.com/opf/openproject/pull/15028.)
Basically, we should have the following method in ApplicationForm component:
```ruby
def url_helpers
OpenProject::StaticRouting::StaticRouter.new.url_helpers
end
```
Basically, we should have the following method in ApplicationForm component:
```ruby
def url_helpers
OpenProject::StaticRouting::StaticRouter.new.url_helpers
end
```