lib/controller.rb in twilio_contactable-0.7.2 vs lib/controller.rb in twilio_contactable-0.7.3
- old
+ new
@@ -2,11 +2,12 @@
module Controller
def self.included(controller)
controller.instance_eval do
# the developer should specify which model(s) will be sought
- # when the app receives incoming requests
+ # when the app receives incoming requests.
+ # See the 'Controller' part of the README for details
protected
def twilio_contactable(*klasses)
@@contactable_classes = klasses
klasses.each do |klass|
klass.twilio_contactable.controller = self.class.name.underscore.chomp('_controller')
@@ -53,9 +54,10 @@
end
def receive_voice_confirmation
@contactable = params[:contactable_type].constantize.find(params[:contactable_id])
@contactable.voice_confirm_with(params['Digits'])
+ render :xml => ''
end
protected
def find_contactable_by_phone_number(number)
\ No newline at end of file