Skip to content

Instantly share code, notes, and snippets.

@mwlang
Created June 27, 2013 14:19
Show Gist options
  • Select an option

  • Save mwlang/5876800 to your computer and use it in GitHub Desktop.

Select an option

Save mwlang/5876800 to your computer and use it in GitHub Desktop.
Example defining "counts" -- See "Properties" column
index do
id_column
column :name
column "Properties" do |o|
o.properties.size
end
column "Added", :created_at
column "Updated", :updated_at
default_actions
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment