Sha256: 6fdba36b029b16b72038c8bd4191ba06af33012987ad6ccff22a81617fbe1b65

Contents?: true

Size: 582 Bytes

Versions: 2

Compression:

Stored size: 582 Bytes

Contents

require 'rails/railtie'
require 'rails/generators'
require 'bbq/core'

module Bbq
  module Rails
    class Railtie < ::Rails::Railtie

      initializer "bqq.set_app" do
        Bbq::Core.app = ::Rails.application
      end

      rake_tasks do
        load File.expand_path(File.join(File.dirname(__FILE__), '../../tasks/bbq.rake'))
      end

      helper_generators = %w(test_unit rspec).flat_map do |test_framework|
        ["#{test_framework}:bbq_test", "#{test_framework}:bbq_install"]
      end
      ::Rails::Generators.hide_namespaces *helper_generators

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bbq-rails-0.4.0 lib/bbq/rails/railtie.rb
bbq-rails-0.3.0 lib/bbq/rails/railtie.rb