lib/orats/templates/base/config/application.rb in orats-5.2.2 vs lib/orats/templates/base/config/application.rb in orats-5.2.3

- old
+ new

@@ -44,11 +44,14 @@ config.action_mailer.default_options = { from: ENV['ACTION_MAILER_DEFAULT_FROM'] } # Set Redis as the back-end for the cache. - config.cache_store = :redis_store, ENV['REDIS_CACHE_URL'] + config.cache_store = :redis_cache_store, { + url: ENV['REDIS_CACHE_URL'], + namespace: ENV['REDIS_CACHE_NAMESPACE'] + } # Set Sidekiq as the back-end for Active Job. config.active_job.queue_adapter = :sidekiq config.active_job.queue_name_prefix = "#{ENV['ACTIVE_JOB_QUEUE_PREFIX']}_#{Rails.env}" @@ -63,10 +66,10 @@ end end # Show in-line form errors. ActionView::Base.field_error_proc = proc do |html_tag, instance| - if html_tag =~ /\<label/ + if /\<label/.match?(html_tag) html_tag else errors = Array(instance.error_message).join(',') %(#{html_tag}<p class="validation-error"> #{errors}</p>).html_safe end