diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-26 09:21:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-26 09:21:41 +0000 |
commit | 589320337db0a242f8adb2150996f6d038aaf9ad (patch) | |
tree | fcbea3b4fc98b50d44932e7fee3bc1ad0d3059a8 /vendor | |
parent | 46f52d306dc475022c8544772d2bdd21501e115d (diff) | |
download | redmine-589320337db0a242f8adb2150996f6d038aaf9ad.tar.gz redmine-589320337db0a242f8adb2150996f6d038aaf9ad.zip |
Trackers controller refactoring.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2526 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/plugins/acts_as_list/lib/active_record/acts/list.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb b/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb index 00d86928d..01b414a1c 100644 --- a/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +++ b/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb @@ -118,6 +118,20 @@ module ActiveRecord assume_top_position end end + + # Move to the given position + def move_to=(pos) + case pos.to_s + when 'highest' + move_to_top + when 'higher' + move_higher + when 'lower' + move_lower + when 'lowest' + move_to_bottom + end + end # Removes the item from the list. def remove_from_list |