Sha256: 30e19bdf4a3b7ab68399765a892bafcdd6c635e0f1d49c65022086f097e190f0
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
case (Rails::VERSION::MAJOR) when 2 if (defined?(ActiveRecord) and defined?(ActiveRecord::Base)) ActiveRecord::Base.send(:include, TestDummy) end if (defined?(ActiveSupport) and defined?(ActiveSupport::TestCase)) ActiveSupport::TestCase.send(:include, TestDummy::TestHelper) end else class TestDummy::Railtie < Rails::Railtie config.before_configuration do if (defined?(ActiveRecord)) ActiveRecord::Base.send(:include, TestDummy) end ActiveSupport::TestCase.send(:include, TestDummy::TestHelper) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
test_dummy-0.1.4 | lib/test_dummy/railtie.rb |
test_dummy-0.1.3 | lib/test_dummy/railtie.rb |