Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
Fix: Switched from 'register_alias' to 'register' so that the 'Reques…
Browse files Browse the repository at this point in the history
…tFilter' works as expected
  • Loading branch information
Theo Cushion committed Jul 2, 2012
1 parent 443d137 commit 9a7bc57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9a7bc57

Please sign in to comment.