Skip to content
Browse files

fix issue with 'slice' call

  • Loading branch information...
1 parent 14e4f81 commit 94f52336f46bfdf9a20586cfb177871a37d0828f Hemant Bhanoo committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/trails/twilio/incoming.rb
View
4 lib/trails/twilio/incoming.rb
@@ -8,7 +8,7 @@ def initialize( request, opts = {} )
end
def twilio_data
- @twilio_data ||= request.params.slice( INCOMING_VARS ).dup
+ request.params.slice( *INCOMING_VARS ).dup
end
def is_sms?
@@ -47,7 +47,7 @@ def is_sms?
'To', #
'Body', # 160 chars
- ]
+ ].freeze
public
INCOMING_VARS.uniq.each do |pname|
mname = pname.gsub( /[A-Z]/ ) { |s| "_#{s.downcase}" }.gsub( /^_/, '' )

0 comments on commit 94f5233

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