has_backends.rb 219 B

12345678910111213
  1. module Mixin
  2. module HasBackends
  3. extend ActiveSupport::Concern
  4. included do
  5. cattr_accessor :backends do
  6. Set.new
  7. end
  8. require_dependency "#{name}::Backend".underscore
  9. end
  10. end
  11. end