Sha256: 89b626ca8256a20f3ba6e4281a22e85e8a6de2a13c44c4fc7e5ad4a957cb4319
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
# see http://api.rubyonrails.org/classes/Rails/Railtie.html require 'simple_worker' require 'rails' module SimpleWorker class Railtie < Rails::Railtie railtie_name :simple_worker initializer "simple_worker.configure_rails_initialization" do |app| puts 'railtie' puts "Initializing list of Rails models..." SimpleWorker.configure do |c2| path = File.join(Rails.root, 'app/models/*.rb') puts 'path=' + path c2.models = Dir.glob(path) c2.extra_requires += ['active_support/core_ext', 'active_record', 'action_mailer'] puts 'config.models=' + c2.models.inspect end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_worker-0.3.19 | lib/railtie.rb |
simple_worker-0.3.18 | lib/railtie.rb |