Skip to content

Commit

Permalink
fix: links from 2.0 to 3.0 (#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Dec 12, 2023
1 parent 44ecd31 commit 149a4ed
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/avo/home/_actions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
</div>
</div>

<a href="https://docs.avohq.io/2.0/actions.html" target="_blank" title="Avo Actions documentation" class="text-bold cursor-pointer block mt-2">Actions in the docs 👉</a>
<a href="https://docs.avohq.io/3.0/actions.html" target="_blank" title="Avo Actions documentation" class="text-bold cursor-pointer block mt-2">Actions in the docs 👉</a>
</div>
</div>
2 changes: 1 addition & 1 deletion app/views/avo/home/_dashboards.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>

<p>
<a href="https://docs.avohq.io/2.0/dashboards.html" target="_blank" title="Avo Dashboards documentation">Docs</a>
<a href="https://docs.avohq.io/3.0/dashboards.html" target="_blank" title="Avo Dashboards documentation">Docs</a>
</p>
</div>

2 changes: 1 addition & 1 deletion app/views/avo/home/_filters.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
</div>
</div>

<a href="https://docs.avohq.io/2.0/filters.html" target="_blank" title="Avo Filters documentation" class="text-bold cursor-pointer block mt-2">Filters in the docs 👉</a>
<a href="https://docs.avohq.io/3.0/filters.html" target="_blank" title="Avo Filters documentation" class="text-bold cursor-pointer block mt-2">Filters in the docs 👉</a>
</div>
</div>
2 changes: 1 addition & 1 deletion app/views/avo/home/_resources.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<% end %>

<p>
<a href="https://docs.avohq.io/2.0/resources.html" target="_blank" title="Avo Resources documentation">Docs</a>
<a href="https://docs.avohq.io/3.0/resources.html" target="_blank" title="Avo Resources documentation">Docs</a>
</p>
</div>

2 changes: 1 addition & 1 deletion lib/avo/resources/resource_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def check_bad_resources
possible_model = possible_model.gsub "Resource", ""

Avo.error_manager.add({
url: "https://docs.avohq.io/2.0/resources.html#custom-model-class",
url: "https://docs.avohq.io/3.0/resources.html#self_model_class",
target: "_blank",
message: "#{resource} does not have a valid model assigned. It failed to find the #{possible_model} model. \n\r Please create that model or assign one using self.model_class = YOUR_MODEL"
})
Expand Down
2 changes: 1 addition & 1 deletion spec/features/avo/resource_missing_model_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
click_on_sidebar_item "Fish"
expect(page).to have_text "Avo::Resources::Bad does not have a valid model assigned. It failed to find the Bad model."
expect(page).to have_text "Please create that model or assign one using self.model_class = YOUR_MODEL"
expect(page).to have_link href: "https://docs.avohq.io/2.0/resources.html#custom-model-class"
expect(page).to have_link href: "https://docs.avohq.io/3.0/resources.html#self_model_class"
end
end

0 comments on commit 149a4ed

Please sign in to comment.