# File lib/will_paginate/view_helpers/link_renderer.rb, line 36 def container_attributes @container_attributes ||= begin attributes = @options.except *(WillPaginate::ViewHelpers.pagination_options.keys - [:class]) # pagination of Post models will have the ID of "posts_pagination" if @options[:container] and @options[:id] === true attributes[:id] = @collection.first.class.name.underscore.pluralize + '_pagination' end attributes end end