Sha256: 53790fc3013d69b843677c62a685170965a482b43ddce41b105d6da48afda94e

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

require 'activesupport'

module Backgrounded
  module Handler
    Dir["#{File.dirname(__FILE__)}/#{name.demodulize.underscore}/*.rb"].each do |handler_file|
      handler_name = File.basename(handler_file, '.rb').camelize.to_sym
      autoload handler_name, File.expand_path(handler_file)
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
wireframe-backgrounded-0.3.0 lib/handler.rb
backgrounded-0.3.1 lib/handler.rb