Skip to content

Commit c9e7774

Browse files
committed
update docstring
1 parent 51a3124 commit c9e7774

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/active_admin/views/index_as_table.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@ module Views
113113
# end
114114
# ```
115115
#
116+
# It's also possible to sort by PostgreSQL's hstore column key. You should set `sortable`
117+
# option to a `column->'key'` value:
118+
#
119+
# ```ruby
120+
# index do
121+
# column :keywords, sortable: "meta->'keywords'"
122+
# end
123+
# ```
124+
#
116125
# ## Associated Sorting
117126
#
118127
# You're normally able to sort columns alphabetically, but by default you

0 commit comments

Comments
 (0)