Skip to content

Commit

Permalink
Check for mayor release as well.
Browse files Browse the repository at this point in the history
Instead of just checking minor release, also check major release number.
  • Loading branch information
rolme authored Sep 13, 2016
1 parent 63165cd commit 5b5015e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/omnicontacts/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def initialize(app, &block)
end

def rack14?
Rack.release.split('.')[1].to_i >= 4
v = Rack.release.split('.')
v[0].to_i >= 1 || v[1].to_i >= 4
end

def importer importer, *args
Expand Down

0 comments on commit 5b5015e

Please sign in to comment.