lib/controller.rb in twilio_contactable-0.8.2 vs lib/controller.rb in twilio_contactable-0.8.3
- old
+ new
@@ -7,11 +7,12 @@
# when the app receives incoming requests.
# See the 'Controller' part of the README for details
protected
def twilio_contactable(*klasses)
@@contactable_classes = klasses
+ name = self.name.underscore.chomp('_controller')
klasses.each do |klass|
- klass.twilio_contactable.controller = self.class.name.underscore.chomp('_controller')
+ klass.twilio_contactable.controller = name
end
end
end
end
\ No newline at end of file