Skip to content

Commit

Permalink
Update core_ext.rb
Browse files Browse the repository at this point in the history
GH-317 is currently under discussion. In the meanwhile, make sure to not override Rails 3.x projects.
  • Loading branch information
weppos committed Mar 30, 2014
1 parent 4a663ce commit 0f8f7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whois/core_ext.rb
@@ -1,7 +1,7 @@
# These extensions are handy Ruby features imported from ActiveSupport
# I don't want to make ActiveSupport a dependency
# but I really need those methods. Credits to the Rails Core team for them.
if defined?(ActiveSupport::VERSION) && ActiveSupport::VERSION::MAJOR >= 4
if defined?(ActiveSupport)
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/class/attribute'
require 'active_support/core_ext/array/wrap'
Expand Down

0 comments on commit 0f8f7a4

Please sign in to comment.