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

Commit

Permalink
Merge pull request #22 from theozaurus/master
Browse files Browse the repository at this point in the history
Fix: Switched from 'register_alias' to 'register' so that the 'RequestFilter' works as expected
  • Loading branch information
stevegraham committed Jul 2, 2012
2 parents 443d137 + 9a7bc57 commit 8ddf121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/railtie.rb
Expand Up @@ -26,7 +26,7 @@ def self.call(template)
ActionController::Base.class_eval { before_filter Twilio::RequestFilter } ActionController::Base.class_eval { before_filter Twilio::RequestFilter }


::ActionView::Template.register_template_handler(:voice, ActionView::Template::Handlers::TwiML) ::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 end
end end

0 comments on commit 8ddf121

Please sign in to comment.