Sha256: e6b1f3a1e6b3f24b04ae052a4d1bd94eda499b14b7e239e7d4cfc27a21eeaa03
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 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 deprecated 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_worker-0.3.20 | lib/railtie.rb |