lib/sidekiq/cron/support.rb in sidekiq-cron-2.0.0.rc1 vs lib/sidekiq/cron/support.rb in sidekiq-cron-2.0.0.rc2

- old
+ new

@@ -1,9 +1,8 @@ -# https://github.com/rails/rails/blob/352865d0f835c24daa9a2e9863dcc9dde9e5371a/activesupport/lib/active_support/inflector/methods.rb#L270 - module Sidekiq module Cron module Support + # Inspired by Active Support Inflector def self.constantize(camel_cased_word) names = camel_cased_word.split("::".freeze) # Trigger a built-in NameError exception including the ill-formed constant in the message. Object.const_get(camel_cased_word) if names.empty?