Trackers controller refactoring.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2526 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
46f52d306d
commit
589320337d
5 files changed
+78
-27
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user