module ResqueNotify::Server

Public Class Methods

included(base) click to toggle source
# File lib/resque-notify/server.rb, line 13
def self.included(base)

  base.class_eval do

    get /notify\/public\/([a-z]+\.[a-z]+)/ do
      send_file ResqueNotify::Server.public_path(params[:captures].first)
    end
  end

end
public_path(filename) click to toggle source
# File lib/resque-notify/server.rb, line 9
def self.public_path(filename)
  File.join(File.dirname(__FILE__), 'server', 'public', filename)
end