stephskardal/rails_admin_import — pull request #20 by naveed-ahmad (2013-04-25 19:26:50+00:00)
Title: Exception: undefined method `info' for nil:NilClass in run_import 

Resolved Exception:

Completed 500 Internal Server Error in 96ms
vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:480:in `_run__432446605125107763__process_action__934790385274361738__callbacks'
vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
NoMethodError (undefined method `info' for nil:NilClass):
vendor/bundle/ruby/1.9.1/bundler/gems/rails_admin_import-90f967a3700f/lib/rails_admin_import.rb:42:in `block (2 levels) in '
vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/notifications.rb:123:in `instrument'
vendor/bundle/ruby/1.9.1/bundler/gems/rails_admin_import-90f967a3700f/lib/rails_admin_import/import.rb:130:in `rescue in

`RailsAdminImport.config.logging` was missing in rescue block of `run_import` method
https://github.com/stephskardal/rails_admin_import/blob/master/lib/rails_admin_import/import.rb#L130

I've DRyed out logging functionality by moving in in separate class.