padrino / padrino-recipes

A collection of padrino templates and plugins
http://www.padrinorb.com
292 stars 50 forks source link

again will_paginate corrections #34

Closed wokibe closed 12 years ago

wokibe commented 12 years ago

Sometimes I run into the situation, that my corrections for issue #33 generate at padrino start the error: "uninitialized constant WillPaginate::Sinatra".

I could not pin down the cause for this behavior, but some experiments (with the help of an old will_paginate issue https://github.com/mislav/will_paginate/issues/149) delivered a solution:

I had to move the three will_paginate requires in boot.rb into the Padrion.before_load block.

I will submit an pull request with this change, plus the missing addition to the Gemfile: inject_into_file destination_root('Gemfile'), "gem 'will_paginate', '~>3.0'\n", :after => "Component requirements\n"

best regards Wolfkibe

wokibe commented 12 years ago

I submitted a pull request (issue #35) with the identical text. So I close this copy.

Sorry for the confusion Wokibe