trabajo-afectivo/lib/mixin/has_backends.rb

14 lines
219 B
Ruby
Raw Normal View History

module Mixin
module HasBackends
extend ActiveSupport::Concern
included do
cattr_accessor :backends do
Set.new
end
require_dependency "#{name}::Backend".underscore
end
end
end