Sha256: e756187121ccd28ed9c3cfb6cf4433c0902c2ccbe92f7bcbf430c527a820173c

Contents?: true

Size: 493 Bytes

Versions: 49

Compression:

Stored size: 493 Bytes

Contents

module Tawork
  class Engine < ::Rails::Engine
    initializer "tawork.configure_rails_initialization", before: :set_autoload_paths do |app|
      app.class.configure do
        config.i18n.load_path += Dir[Tawork::Engine.root.join(*%w(config locales *.{rb,yml})).to_s]
        config.autoload_paths += %W(#{Tawork::Engine.root.join 'lib'})
        Tawork::Engine.paths['db/migrate'].existent.each do |path|
          config.paths['db/migrate'] << path
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
tawork-0.0.50 lib/tawork/engine.rb
tawork-0.0.49 lib/tawork/engine.rb
tawork-0.0.48 lib/tawork/engine.rb
tawork-0.0.47 lib/tawork/engine.rb
tawork-0.0.46 lib/tawork/engine.rb
tawork-0.0.45 lib/tawork/engine.rb
tawork-0.0.44 lib/tawork/engine.rb
tawork-0.0.43 lib/tawork/engine.rb
tawork-0.0.42 lib/tawork/engine.rb
tawork-0.0.41 lib/tawork/engine.rb
tawork-0.0.40 lib/tawork/engine.rb
tawork-0.0.39 lib/tawork/engine.rb
tawork-0.0.38 lib/tawork/engine.rb
tawork-0.0.37 lib/tawork/engine.rb
tawork-0.0.36 lib/tawork/engine.rb
tawork-0.0.35 lib/tawork/engine.rb
tawork-0.0.34 lib/tawork/engine.rb
tawork-0.0.33 lib/tawork/engine.rb
tawork-0.0.31 lib/tawork/engine.rb
tawork-0.0.30 lib/tawork/engine.rb