Skip to content

Commit

Permalink
Merge pull request #10 from fatfreecrm/fix/ransortable_attributes
Browse files Browse the repository at this point in the history
fixes ransortable attributes for ransack 1.2
  • Loading branch information
steveyken committed Jan 7, 2015
2 parents b8e6065 + cd63e78 commit 72bc8ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ransack_ui/adapters/active_record/base.rb
Expand Up @@ -37,6 +37,9 @@ def ransackable_associations(auth_object = nil)
end
end

def ransortable_attributes(auth_object = nil)
ransackable_attributes(auth_object).map(&:first)
end
end
end
end
Expand Down

0 comments on commit 72bc8ea

Please sign in to comment.