```ruby
module RspecApiDocumentation
  class Railtie < Rails::Railtie
    rake_tasks do
      load "tasks/docs.rake"
    end
  end
end
```

Use direct path to rake file
user
```ruby
module RspecApiDocumentation
  class Railtie < Rails::Railtie
    rake_tasks do
      load File.join(File.dirname(__FILE__), '../tasks/docs.rake')
    end
  end
end
```
assistant