lib/magic_addresses.rb in magic_addresses-0.0.14 vs lib/magic_addresses.rb in magic_addresses-0.0.15
- old
+ new
@@ -41,9 +41,12 @@
autoload :StatesController, "app/controllers/magic_addresses/states_controller"
autoload :CitiesController, "app/controllers/magic_addresses/cities_controller"
autoload :DistrictsController, "app/controllers/magic_addresses/districts_controller"
autoload :SubdistrictsController, "app/controllers/magic_addresses/subdistricts_controller"
+ # worker (sidekiq)
+ autoload :AddressWorker, "app/workers/magic_addresses/addresses_worker" if MagicAddresses.configuration.job_backend == :sidekiq
+
# serializer
autoload :AddressSerializer, "app/serializers/magic_addresses/address_serializer" if defined?(ActiveModel::Serializer)
class << self
\ No newline at end of file