Skip to content

Commit

Permalink
Added compatibility for ruby 2.1 or below
Browse files Browse the repository at this point in the history
  • Loading branch information
fredwu committed Aug 6, 2015
1 parent f6e4674 commit c4119fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/config.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'active_support/core_ext/module/attribute_accessors'

require 'config/compatibility'
require 'config/options'
require 'config/version'
require 'config/engine' if defined?(::Rails)
Expand Down
3 changes: 3 additions & 0 deletions lib/config/compatibility.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if defined?(RbConfig) && defined?(Config)
Object.send(:remove_const, :Config)
end
2 changes: 1 addition & 1 deletion lib/config/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Config
VERSION = '1.0.0.beta2'
VERSION = '1.0.0.beta3'
end

0 comments on commit c4119fb

Please sign in to comment.