Permalink
Browse files

fixed kaminari setup generator

  • Loading branch information...
1 parent 847df85 commit 518b8247ece5d2924e6c701a26d926b101aeee13 @kristianmandrup committed Nov 22, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/generators/apotomo/kaminari_setup_generator.rb
@@ -1,7 +1,7 @@
module Apotomo
module Generators
class KaminariSetupGenerator < ::Rails::Generators::Base
- # source_root File.expand_path("../templates", __FILE__)
+ source_root File.expand_path("../templates", __FILE__)
def create_initializer
append_to_file kaminari_config_file do
@@ -15,13 +15,14 @@ def kaminari_config_file
"config/initializers/kaminari_config.rb"
end
- def kaminari_config_code
- %q{
+ def kaminari_config_code
+ %q{
Kaminari::Helpers::Tag.class_eval do
def to_s(locals = {}) #:nodoc:
@template.render :partial => "../views/kaminari/#{@theme}#{self.class.name.demodulize.underscore}", :locals => @options.merge(locals)
end
-end
-}
+end}
+ end
+ end
end
end

0 comments on commit 518b824

Please sign in to comment.