these 3 lines seems can be refactored

unless options[:class]
  options[:class] = 'pager'
else
  options[:class] = ['pager', options[:class]].join(' ')
end