Sha256: 0c70f35fcd8c45b94a8e47c8a07c964e713599c9f682ebeb91bd740e11f545c6

Contents?: true

Size: 322 Bytes

Versions: 15

Compression:

Stored size: 322 Bytes

Contents

require 'testbot'

begin
  require 'rails'
  @rails_loaded = true
rescue LoadError => ex
  @rails_loaded = false
end

if @rails_loaded
  module Testbot
    class Railtie < Rails::Railtie
      rake_tasks do
        load File.expand_path(File.join(File.dirname(__FILE__), "tasks/testbot.rake"))
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
testbot-0.4.6 lib/railtie.rb
testbot-0.4.5 lib/railtie.rb
testbot-0.4.4 lib/railtie.rb
testbot-0.4.2 lib/railtie.rb
testbot-0.4.1 lib/railtie.rb
testbot-0.4.0 lib/railtie.rb
testbot-0.3.9 lib/railtie.rb
testbot-0.3.9.pre lib/railtie.rb
testbot-0.3.8 lib/railtie.rb
testbot-0.3.8.pre lib/railtie.rb
testbot-0.3.7 lib/railtie.rb
testbot-0.3.6 lib/railtie.rb
testbot-0.3.5 lib/railtie.rb
testbot-0.3.4 lib/railtie.rb
testbot-0.3.3 lib/railtie.rb