lib/bmc/config.rb in bmc-1.3.2 vs lib/bmc/config.rb in bmc-1.3.3
- old
+ new
@@ -3,26 +3,26 @@
def parent_controller
@parent_controller ||= [
"ApplicationController",
"ActionController::Base",
- ].map(&:safe_constantize).compact.first
+ ].filter_map(&:safe_constantize).first
end
attr_writer :parent_job
def parent_job
@parent_job ||= [
"ApplicationJob",
"ActiveJob::Base",
- ].map(&:safe_constantize).compact.first
+ ].filter_map(&:safe_constantize).first
end
attr_writer :parent_mailer
def parent_mailer
@parent_mailer ||= [
"ApplicationMailer",
"ActionMailer::Base",
- ].map(&:safe_constantize).compact.first
+ ].filter_map(&:safe_constantize).first
end
end