Skip to content

Commit

Permalink
Explicitly load will_paginate/finder
Browse files Browse the repository at this point in the history
We are using WillPaginate::Finder so we should have a require for it.
While writing doctests I stumbled upon it not being defined. Presumably
inside Rails it gets autoloaded in some way.
  • Loading branch information
betelgeuse authored and bryanlarsen committed Sep 16, 2010
1 parent 4fecde8 commit e2c3a9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hobo/lib/hobo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'hobofields'
begin
require 'will_paginate'
require 'will_paginate/finder'
rescue MissingSourceFile
# OK, Hobo won't do pagination then
end
Expand Down

0 comments on commit e2c3a9a

Please sign in to comment.