Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/activeadmin-orderable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module TableMethods
HANDLE = '↕'.html_safe

def orderable_handle_column options = {}
column '', :class => "activeadmin-orderable" do |resource|
column options[:title], :class => "activeadmin-orderable" do |resource|
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use the new Ruby 1.9 hash syntax.
Prefer single-quoted strings when you don't need string interpolation or special symbols.

sort_url = if options[:url].is_a? Symbol
send options[:url], resource
elsif options[:url].respond_to? :call
Expand Down