Navigation Menu

Skip to content

Commit

Permalink
error out if installed on Rails < 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Aug 9, 2011
1 parent 87f827d commit f4b6e3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/will_paginate.rb
Expand Up @@ -2,8 +2,10 @@
module WillPaginate
end

if defined?(::Rails::Railtie)
if defined?(Rails::Railtie)
require 'will_paginate/railtie'
elsif defined?(Rails::Initializer)
raise "will_paginate 3.0 is not compatible with Rails 2.3 or older"
end

if defined?(Merb::AbstractController)
Expand Down

0 comments on commit f4b6e3b

Please sign in to comment.