lib/conversions.rb in conversions-1.4.4 vs lib/conversions.rb in conversions-1.4.5
- old
+ new
@@ -1,6 +1,11 @@
require 'active_support'
-begin; require 'active_support/core_ext/module/attribute_accessors'; rescue MissingSourceFile; end
+require 'active_support/version'
+%w{
+ active_support/core_ext/module/attribute_accessors
+}.each do |active_support_3_requirement|
+ require active_support_3_requirement
+end if ActiveSupport::VERSION::MAJOR == 3
# Conversions makes it easy to convert between units.
module Conversions
mattr_accessor :conversions
\ No newline at end of file