diff --git a/CHANGELOG.md b/CHANGELOG.md index 012fb4e..0cdaad3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,11 @@ henceforth should be documented here. *Josh Kovach* +* Add ability to remove sort_link arrows + ([pull request](https://github.com/activerecord-hackery/ransack/pull/473)). + + *Fred Bergman* + ### Fixed * Make `search_form_for`'s default `:as` option respect the custom search key diff --git a/README.md b/README.md index 2fac593..39a087b 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,8 @@ This example toggles the sort directions of both fields, by default initially sorting the `last_name` field by ascending order, and the `first_name` field by descending order. -You can remove the order indicator arrow by passing hide_indicator: true +The sort link may be displayed without the order indicator arrow by passing +`hide_indicator: true`: ```erb <%= sort_link(@q, :name, hide_indicator: true) %>