Class: Kaminari::Helpers::SinatraHelpers::ActionViewTemplateProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/kaminari_patch.rb

Instance Method Summary collapse

Instance Method Details

#render(*args) ⇒ Object



6
7
8
9
10
11
# File 'lib/kaminari_patch.rb', line 6

def render(*args)
  base = ActionView::Base.new.tap do |a|
    a.view_paths << File.expand_path("#{ActivateAdmin.root}/lib", __FILE__)
  end
  base.render(*args)
end