Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #22 from theozaurus/master

Fix: Switched from 'register_alias' to 'register' so that the 'RequestFilter' works as expected
  • Loading branch information...
commit 8ddf121ca5746a1ec3aed94af69ab470680fd0ae 2 parents 443d137 + 9a7bc57
@stevegraham authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/railtie.rb
View
2  lib/railtie.rb
@@ -26,7 +26,7 @@ def self.call(template)
ActionController::Base.class_eval { before_filter Twilio::RequestFilter }
::ActionView::Template.register_template_handler(:voice, ActionView::Template::Handlers::TwiML)
- ::Mime::Type.register_alias 'text/xml', :voice
+ ::Mime::Type.register 'text/xml', :voice
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.