Skip to content
Browse files

postback_path and find_receiver_by_uuid are configurable

  • Loading branch information...
1 parent 7eaeca0 commit 2aad602a5b55fd68a61a68efb6c5bd53d97e94f0 @aceofspades committed Mar 26, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 lib/sendgrid_postback.rb
  2. +1 −1 lib/sendgrid_postback/action_dispatch_ext.rb
View
2 lib/sendgrid_postback.rb
@@ -14,6 +14,8 @@ module SendgridPostback
class Config
attr_accessor :logger
attr_accessor :report_exception
+ attr_accessor :find_receiver_by_uuid
+ attr_accessor :postback_path
def initialize
#@report_exception = proc { |exc| }
View
2 lib/sendgrid_postback/action_dispatch_ext.rb
@@ -7,7 +7,7 @@
module ActionDispatch
ParamsParser.class_eval do
def parse_formatted_parameters_with_sendgrid_postback(env)
- if env['PATH_INFO'] == '/sendgrid_postback/events'
+ if env['PATH_INFO'] == SendgridPostback.config.postback_path
begin
request = Request.new(env)
parser = ::Yajl::Parser.new

0 comments on commit 2aad602

Please sign in to comment.
Something went wrong with that request. Please try again.