Class: SomaticLinkRenderer

Inherits:
WillPaginate::ViewHelpers::LinkRenderer
  • Object
show all
Defined in:
lib/generators/somatics/install/templates/lib/somatic_link_renderer.rb

Instance Method Summary collapse

Instance Method Details

#prepare(collection, options, template) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/generators/somatics/install/templates/lib/somatic_link_renderer.rb', line 3

def prepare(collection, options, template)
  super
  @collection_name = template.controller.controller_name
  @param_name = "#{@collection_name}_page"
  @options[:previous_label] = I18n.t(:previous)
  @options[:next_label] = I18n.t(:next)
end