Skip to content

Commit

Permalink
Fix the logic for pry-rails dependency checking
Browse files Browse the repository at this point in the history
The check was just backwards so I made the name of the method more explicit
and changed the if to an unless.
  • Loading branch information
latortuga committed Feb 18, 2012
1 parent 8d604ec commit 448d0c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/active_admin/dependency_checker.rb
Expand Up @@ -10,7 +10,7 @@ def check!
end
end

unless pry_rails_0_1_6?
if pry_rails_before_0_1_6?
warn "ActiveAdmin is not compatible with pry-rails < 0.1.6. Please upgrade pry-rails."
end
end
Expand All @@ -30,7 +30,7 @@ def sass_rails_3_1?
false
end

def pry_rails_0_1_6?
def pry_rails_before_0_1_6?
begin
PryRails::VERSION < "0.1.6"
rescue NameError
Expand Down

0 comments on commit 448d0c1

Please sign in to comment.