class PageAttachment

def add_to_list_bottom

the position value if it has already been set (as it usually is for new attachments)
a small change to the method in acts_as_list so that we don't override
def add_to_list_bottom
  self[position_column] ||= bottom_position_in_list.to_i + 1
end

def selected?

def selected?
  !!selected
end