In case you want to test your gem / plugin on multiple rails version:
require 'rails/version'
if Rails::VERSION::MAJOR > 2
require 'rails'
else
module Rails
class FakeConfig
def after_initialize
end
end
@@configuration = FakeConfig.new
end
require 'initializer'
end
Like this:
Like Loading...
Related