yrgoldteeth / bootstrap-will_paginate

Format will_paginate html to match Twitter Bootstrap styling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails doesn't boot with gem 'bootstrap-will_paginate' AND 'mongoid'

andey opened this issue · comments

rails server
/home/andey/.rvm/gems/ruby-2.0.0-p247/gems/leshill-will_paginate-2.3.11/lib/will_paginate.rb:78:in `extend': wrong argument type Class (expected Module) (TypeError)
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/leshill-will_paginate-2.3.11/lib/will_paginate.rb:78:in `<module:Deprecation>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/leshill-will_paginate-2.3.11/lib/will_paginate.rb:77:in `<module:WillPaginate>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/leshill-will_paginate-2.3.11/lib/will_paginate.rb:11:in `<top (required)>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /home/andey/Dropbox/Projects/bestofama/config/application.rb:6:in `<top (required)>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
    from /home/andey/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

the gem 'will_paginate' itself has no complications with mongoid.

I'm guessing leshill-will_paginate-2.3.11 is a required version of will_paginate to work with mongoid perhaps? Not sure what's happening here, I'll take a look if I get some time.

Confirmed this with a fresh rails app, adding only bootstrap-will_paginate and mongoid to the Gemfile. It definitely installs just the will_paginate gem that is a dependency of bootstrap-will_paginate and then installs leshill-will_paginate v 2.3.11 for some reason as of yet unknown to me.

I don't really do mongo if I can help it, but I'll take a look as soon as I can.