Skip to content

Commit

Permalink
Adding support for Rails 3 to prevent override methods getting loaded…
Browse files Browse the repository at this point in the history
… when ActiveSupport is present
  • Loading branch information
mikel committed Sep 4, 2010
1 parent 9bfdd80 commit 43e26f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/awsbase/support.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# If ActiveSupport is loaded, then great - use it. But we don't
# want a dependency on it, so if it's not present, define the few
# extensions that we want to use...
unless defined? ActiveSupport::CoreExtensions
unless defined?(ActiveSupport::CoreExtensions) || defined?(ActiveSupport::Inflector)

This comment has been minimized.

Copy link
@tadman

tadman Nov 8, 2010

This could probably simplify to ActiveSupport since I don't see how you can avoid getting the core extensions in Rails 3.

# These are ActiveSupport-;like extensions to do a few handy things in the gems
# Derived from ActiveSupport, so the AS copyright notice applies:
#
Expand Down

0 comments on commit 43e26f0

Please sign in to comment.