Add configuration management to Workflower module with logger support

This commit is contained in:
Ari Karim 2025-05-27 14:51:04 +03:00
parent c69f4752c1
commit 7cb759c505
No known key found for this signature in database
GPG Key ID: 1A5559E2E32F1805

View File

@ -3,7 +3,25 @@
require_relative "workflower/version"
require "workflower/manager"
require "workflower/acts_as_workflower"
module Workflower
class Error < StandardError; end
# Your code goes here...
class << self
def configuration
@configuration ||= Configuration.new
end
def configure
yield(configuration)
end
end
class Configuration
attr_accessor :logger
def initialize
@logger = nil
end
end
end