Skip to content

Commit

Permalink
Check for the presence of Rails::Railtie instead of Rails before tryi…
Browse files Browse the repository at this point in the history
…ng to include the railtie (to allow this gem to work on Rails 2.3)
  • Loading branch information
Brian Abreu committed Apr 25, 2012
1 parent a415b53 commit 883927a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/fedex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
require "fedex/web_services"

module Fedex
require 'fedex/railtie' if defined?(Rails)
end
require 'fedex/railtie' if (defined?(Rails::Railtie))
end
2 changes: 1 addition & 1 deletion lib/fedex/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Fedex
VERSION = "1.1.45"
VERSION = "1.1.46"
end

0 comments on commit 883927a

Please sign in to comment.