Sha256: d31f8aa69ab8f9c081cd5f4691f820ea775d967f39bd6c107df587fd3a6745af

Contents?: true

Size: 632 Bytes

Versions: 4

Compression:

Stored size: 632 Bytes

Contents

module Tasuku
  class Engine < ::Rails::Engine
    isolate_namespace Tasuku

    initializer 'tasuku.factories', after: 'factory_girl.set_factory_paths' do
      FactoryGirl.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryGirl)
    end

    initializer 'tasuku.inflections' do
      ActiveSupport::Inflector.inflections do |inflect|
        inflect.acronym 'URL'
      end
    end

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.fixture_replacement :factory_girl, dir: 'spec/factories'
      g.assets false
      g.helper false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tasuku-1.1.0 lib/tasuku/engine.rb
tasuku-1.0.1 lib/tasuku/engine.rb
tasuku-0.1.1 lib/tasuku/engine.rb
tasuku-0.1.0 lib/tasuku/engine.rb