mirror of
https://github.com/ditkrg/workflower.git
synced 2026-01-22 22:26:40 +00:00
Add configuration management to Workflower module with logger support
This commit is contained in:
parent
c69f4752c1
commit
7cb759c505
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user