module Twilio
  module REST
    class Messages < ListResource; end

    class Message < InstanceResource
      def initialize(path, client, params={})
        super
        resource :media
      end
    end
  end
end

module Twilio
  module REST
    class Messages < ListResource
      def initialize(path, client)
        path.gsub! '/SMS', ''
        super
      end
    end

    class Message < InstanceResource
      def initialize(path, client, params={})
        super
        resource :media
      end
    end
  end
end

Make sure /SMS is not used
Make sure /SMS is not used
