Class: Kaminari::Helpers::Tag
- Inherits:
-
Object
- Object
- Kaminari::Helpers::Tag
- Defined in:
- lib/locomotive/kaminari.rb
Instance Method Summary collapse
Instance Method Details
#to_s(locals = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/locomotive/kaminari.rb', line 7 def to_s(locals = {}) path = "kaminari/#{@theme}#{self.class.name.demodulize.underscore}" if namespace = @options[:namespace] path = "#{namespace}/#{path}" end @template.render partial: path, locals: @options.merge(locals) end |