Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removal of active_link_to gem #2272

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

ivan-kocienski-gfsc
Copy link
Contributor

@ivan-kocienski-gfsc ivan-kocienski-gfsc commented Feb 21, 2024

Closes #2259

A small gem that is used in the navigation menu links to add 'active' classes to anchor links.

Implemented in a helper now

Implemented in a helper now
@ivan-kocienski-gfsc ivan-kocienski-gfsc requested a review from a team February 22, 2024 09:59
@@ -51,4 +51,21 @@ def image_uploader_hint(uploader_field)
number_to_human_size(uploader_field.size_range.max)
)
end

# ported from https://github.com/comfy/active_link_to/blob/master/lib/active_link_to/active_link_to.rb
def active_link_to(title, url, data: nil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this - it's such a small amount of code better to have it here where we can keep an eye on it.

Copy link
Contributor

@aaaaargZombies aaaaargZombies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bon!

@ivan-kocienski-gfsc ivan-kocienski-gfsc merged commit 83df3ca into main Feb 26, 2024
2 checks passed
@ivan-kocienski-gfsc ivan-kocienski-gfsc deleted the ik-2259-remove-active-link-to-gem branch February 26, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Remove active_link_to gem and write own simple solution
2 participants